From 78af9da5864e4a4e52fcc7c6375a45f38ffcdcbd Mon Sep 17 00:00:00 2001 From: Pim Kunis Date: Tue, 30 Jul 2019 22:12:27 +0200 Subject: [PATCH] Update readme for secret key base. --- README.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index cf722d7..ba3a2e2 100644 --- a/README.md +++ b/README.md @@ -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) - [Phoenix](https://hexdocs.pm/phoenix/installation.html) -Building: +## Building ```bash +cd ui/ && export SECRET_KEY_BASE="$(mix phx.gen.secret | tail -1)" export MIX_ENV=prod && export MIX_TARGET= -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 ../firmware && mix deps.get mix firmware