Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
description "myscript"
start on runlevel [2345]
stop on runlevel [016]
respawn
respawn limit 10 5
chroot /srv/myscript
exec env/bin/gunicorn app.wsgi:application -b 0.0.0.0:8000 -w 4
# I've also tried
exec /srv/myscript/env/bin/gunicorn app.wsgi:application -b 0.0.0.0:8000 -w 4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment