Created
January 4, 2016 20:36
-
-
Save itsmemattchung/e053b395568fc549db07 to your computer and use it in GitHub Desktop.
uwsgi
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[program:uwsgi-{{ project }}-{{ env }}] | |
command={% if new_relic_enabled %}{{ env_folder }}/bin/newrelic-admin run-program {% endif %}{{ env_folder }}/bin/uwsgi --ini {{ env_folder }}/uwsgi.ini | |
autostart=true | |
startsecs=10 | |
stopwaitsecs=35 | |
redirect_stderr=true | |
stopsignal=QUIT | |
environment=CELERY_LOADER='django',DJANGO_SETTINGS_CHAIN='www',NEW_RELIC_CONFIG_FILE='/etc/newrelic/new-relic-{{ project }}-{{ env }}-www.ini' | |
stdout_logfile=/var/log/supervisor/uwsgi-{{ project }}-{{ env }}.log | |
stderr_logfile=/var/log/supervisor/uwsgi-{{ project }}-{{ env }}-stderr.log | |
killasgroup=true | |
{{% if uwsgi_syslog is True %}} | |
stdout_events_enabled = true | |
stderr_events_enabled = true | |
{{% endif %} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment