Skip to content

Instantly share code, notes, and snippets.

@katoozi
Last active May 18, 2019 08:48
Show Gist options
  • Save katoozi/028e8dd135de254ee5de95ebf5b48207 to your computer and use it in GitHub Desktop.
Save katoozi/028e8dd135de254ee5de95ebf5b48207 to your computer and use it in GitHub Desktop.
simple supervisor service file
[program:django_project]
command = /var/www/django_project/gunicorn_start.sh ; Command to start app
user = ubuntu ; User to run as
stdout_logfile = /var/www/logs/gunicorn_supervisor.log ; Where to write log messages
redirect_stderr = true ; Save stderr in the same log
environment=LANG=en_US.UTF-8,LC_ALL=en_US.UTF-8 ; Set UTF-8 as default encoding
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment