Skip to content

Instantly share code, notes, and snippets.

@itsmemattchung
Created January 4, 2016 20:36
Show Gist options
  • Save itsmemattchung/e053b395568fc549db07 to your computer and use it in GitHub Desktop.
Save itsmemattchung/e053b395568fc549db07 to your computer and use it in GitHub Desktop.
uwsgi
[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