Specify the environment by hugo option:

```
--- a/.circleci/config.yml
+++ b/.circleci/config.yml
@@ -17,7 +17,7 @@ jobs:
       - run:
           name: "Run Hugo"
           working_directory: /root/project/
-          command: HUGO_ENV=staging hugo -v -s /root/project/
+          command: hugo -e staging -v -s /root/project/

       - run:
           name: Change Amazon Links
```
This commit is contained in:
Kazuhiro MUSASHI 2019-05-04 21:55:19 +08:00
parent 5ec3b74ae9
commit 6abf67e828
1 changed files with 1 additions and 1 deletions

View File

@ -17,7 +17,7 @@ jobs:
- run:
name: "Run Hugo"
working_directory: /root/project/
command: HUGO_ENV=staging hugo -v -s /root/project/
command: hugo -e staging -v -s /root/project/
- run:
name: Change Amazon Links