Update readme for secret key base.

This commit is contained in:
Pim Kunis 2019-07-30 22:12:27 +02:00
parent 6a5a9eece7
commit 78af9da586

View file

@ -10,10 +10,11 @@ If you have found the source code before finding the geocache, consider it a hin
- [Nerves](https://hexdocs.pm/nerves/installation.html) - [Nerves](https://hexdocs.pm/nerves/installation.html)
- [Phoenix](https://hexdocs.pm/phoenix/installation.html) - [Phoenix](https://hexdocs.pm/phoenix/installation.html)
Building: ## Building
```bash ```bash
cd ui/ && export SECRET_KEY_BASE="$(mix phx.gen.secret | tail -1)"
export MIX_ENV=prod && export MIX_TARGET=<device> export MIX_ENV=prod && export MIX_TARGET=<device>
cd ui/assets && npm install && node node_modules/webpack/bin/webpack.js --mode production cd assets && npm install && node node_modules/webpack/bin/webpack.js --mode production
cd ../ && mix phx.digest cd ../ && mix phx.digest
cd ../firmware && mix deps.get cd ../firmware && mix deps.get
mix firmware mix firmware