Commit 5c344b8a0b06178ec5399a6b10c191b672eb0258
1 parent
59ca143c77
Exists in
master
Forgot to add --touch-reload to uwsgi apps
Showing 1 changed file with 2 additions and 2 deletions Inline Diff
scripts/run_production.sh
View file @
5c344b8
#!/bin/bash -xe | 1 | 1 | #!/bin/bash -xe | |
source secrets.sh | 2 | 2 | source secrets.sh | |
source venv/bin/activate | 3 | 3 | source venv/bin/activate | |
# newrelic-admin run-program /srv/flashy-backend/venv/bin/gunicorn --pid /run/flashy/gunicorn.pid -w 6 -n flashy -b 127.0.0.1:7002 flashy.wsgi | 4 | 4 | # newrelic-admin run-program /srv/flashy-backend/venv/bin/gunicorn --pid /run/flashy/gunicorn.pid -w 6 -n flashy -b 127.0.0.1:7002 flashy.wsgi | |
# Run the scripts with 'exec' so they're tracked by upstart properly | 5 | 5 | # Run the scripts with 'exec' so they're tracked by upstart properly | |
exec uwsgi /etc/uwsgi/websocket.ini & | 6 | 6 | exec uwsgi /etc/uwsgi/websocket.ini --touch-reload=/etc/uwsgi/websocket.ini & | |
exec newrelic-admin run-program uwsgi /etc/uwsgi/flashy.ini | 7 | 7 | exec newrelic-admin run-program uwsgi /etc/uwsgi/flashy.ini --touch-reload=/etc/uwsgi/flashy.ini | |
8 | 8 | |||