prod secret. don't do that
This commit is contained in:
parent
0969da9ef9
commit
dd807c55dc
4 changed files with 19 additions and 3 deletions
|
|
@ -1,6 +1,6 @@
|
|||
# commands from dev env should work.
|
||||
# you'd need to add prod database to env, like this (don't use this exact one)
|
||||
# export DATABASE_URL=ecto://postgres:postgres@localhost/gclp_dev
|
||||
# export DATABASE_URL=ecto://postgres:postgres@localhost/lp_dev
|
||||
# and gen a secret:
|
||||
export SECRET_KEY_BASE=`mix phx.gen.secret`
|
||||
# open ports you want to use for prod in firewall rules(instance settings)
|
||||
|
|
@ -26,3 +26,5 @@ cd lp
|
|||
mix deps.get
|
||||
mix deps.compile
|
||||
mix ecto.create
|
||||
# fetch prod.exs config file
|
||||
|
||||
|
|
|
|||
|
|
@ -0,0 +1,7 @@
|
|||
git pull origin pet
|
||||
mix deps.get --only prod
|
||||
# mix phx.digest # once you have something js related
|
||||
MIX_ENV=prod mix compile
|
||||
MIX_ENV=prod mix release
|
||||
_build/prod/rel/lp/bin/lp start
|
||||
# note, that it is running in terminal
|
||||
Reference in a new issue