Skip to content

Commit

Permalink
fix(env): put ENV into yarn cmd
Browse files Browse the repository at this point in the history
  • Loading branch information
defclass committed Feb 2, 2021
1 parent ac337f0 commit 49da4f4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
4 changes: 1 addition & 3 deletions README.md
Expand Up @@ -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
Expand Down
3 changes: 2 additions & 1 deletion package.json
Expand Up @@ -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",
Expand Down

0 comments on commit 49da4f4

Please sign in to comment.