Przeglądaj źródła

Add some doc on release process

theenglishway (time) 4 lat temu
rodzic
commit
0a51166e97
1 zmienionych plików z 6 dodań i 0 usunięć
  1. 6 0
      README.md

+ 6 - 0
README.md

@@ -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 :