Update readme for secret key base.
This commit is contained in:
parent
6a5a9eece7
commit
78af9da586
1 changed files with 3 additions and 2 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue