Skip to content

Instantly share code, notes, and snippets.

@dylanninin
Created June 21, 2018 12:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dylanninin/9b6b6aef9af25a4578245f893511f930 to your computer and use it in GitHub Desktop.
Save dylanninin/9b6b6aef9af25a4578245f893511f930 to your computer and use it in GitHub Desktop.
supervisor with django
# Ansible managed
[program:django]
directory=/work/apps/django/apisite ;
environment=DJANGO_SETTINGS_MODULE=apisite.settings ;
command=/home/ubuntu/.pyenv/versions/django-3.6.1/bin/python manage.py runserver 10300 ;
process_name=%(program_name)s-%(process_num)02d ;
numprocs=1 ;
autostart=True ;
autorestart=True ;
redirect_stderr=False ;
stopsignal=KILL ;
stopasgroup=true ;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment