Closed loongmxbt closed 7 years ago
in proj_name/rel/config.exs
, change default_environment
to :prod
and run mix gatling.deploy proj_name
.
Seems when upgrade it uses the rel/config default environment setup, but first deploy will build prod.
PS: After modifying rel/config.exs, upgrade still uses dev causes error, but deploy uses prod works fine, what did I do wrong.
Need to do service proj_name stop
and service proj_name start
Hey @loongmxbt, what I typically do on the production server is globally set the MIX_ENV
variable to prod
Here is a link to do this in the docs: https://github.com/hashrocket/gatling#deploying-your-app
I came across this too. For me the root cause of this is the sudo security policy that leads to a fresh environment for commands that run via sudo. I've added the necessary --preserve-env
statements and hints with this commit: 17ca79f97b368c0961c61733647914975eac95bb
We should deploy the app via a sudo user instead of the root user. Check den's guide!
When
git push production master
and then visit url, it showsseems it uses phoenix_live_reload module which is only for dev.
How to solve this problem? Where did I miss? Thanks a lot!