fix(env): put ENV into yarn cmd

pull/1158/head
defclass 2021-02-02 14:40:06 +08:00
parent ac337f0e52
commit 49da4f4829
2 changed files with 3 additions and 4 deletions

View File

@ -85,11 +85,9 @@ Open <http://localhost:3001>.
### 4. Build a release
``` bash
ENV=prod yarn release
yarn release
```
ENV: we can release a version for `staging` or `prod`. Logseq will read the environment variable from `resources/config.edn`
## Alternative: Docker based development environment
### 1. Fetch sources

View File

@ -25,7 +25,8 @@
},
"scripts": {
"watch": "run-p gulp:build gulp:watch cljs:watch",
"release": "run-s gulp:build cljs:release",
"release": "ENV=prod run-s gulp:build cljs:release",
"release-staging": "ENV=staging run-s gulp:build cljs:release",
"watch-app": "run-p gulp:watch cljs:watch-app",
"release-app": "run-s gulp:build cljs:release-app",
"release-publishing": "run-s gulp:build cljs:release-publishing",