Skip to content

Commit 076e246

Browse files
authored
Remove webpack call from env.sh template
The `env.sh` template creates `env.sh` on the prod server and runs as root. This fires webpack in the `app` folder but creates the `app/public/js/app.js` folder with `root` permissions. `env.sh` is sourced during deployment in `web.tpl`, causing the wrong permissions to be applied. Removing these lines from this template solves the issue.
1 parent 151c1cd commit 076e246

File tree

1 file changed

+0
-2
lines changed
  • terraform/do/cabin/templates

1 file changed

+0
-2
lines changed

terraform/do/cabin/templates/env.tpl

-2
Original file line numberDiff line numberDiff line change
@@ -19,5 +19,3 @@ export KEEN_WRITE_KEY=${KEEN_WRITE_KEY}
1919
export KEEN_READ_KEY=${KEEN_READ_KEY}
2020
export IMGIX_BASE_URL=https://react-example-app.imgix.net/uploads
2121
export API_URL=http://localhost:8000
22-
cd /home/cabin/stream-react-example/app
23-
webpack

0 commit comments

Comments
 (0)