|
|
@@ -71,6 +71,12 @@ In production mode some configuration is extracted from the environment.
|
|
|
* Compress and digest static assets `MIX_ENV=prod mix assets.digest`
|
|
|
* Start the server : `MIX_ENV=prod DATABASE_URL=db-url SECRET_KEY_BASE=secret_key PORT=port HOST=host mix phx.server`
|
|
|
|
|
|
+### In production mode, as a release
|
|
|
+
|
|
|
+* Generate a secret key using `mix phx.gen.secret`
|
|
|
+* Create the release by running script : `priv/build/build.sh`
|
|
|
+* Start the server : `DATABASE_URL=db-url SECRET_KEY_BASE=secret_key PORT=port HOST=host _build/prod/rel/toy/bin/toy start`
|
|
|
+
|
|
|
### Getting the latest release
|
|
|
|
|
|
The latest release can be easily found using the following shell command :
|