Skip to content

Instantly share code, notes, and snippets.

@strets123
Created May 12, 2017 10:45
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 strets123/2ff1d0ef774cebef63b06620b249b6db to your computer and use it in GitHub Desktop.
Save strets123/2ff1d0ef774cebef63b06620b249b6db to your computer and use it in GitHub Desktop.
[program:zegami_uwsgi]
;the socket directive is the unix socket which supervisor uses to communicate with nginx
command=/opt/zegami_python/anaconda/bin/uwsgi
--uid=zegami
--gid=zegami
--chdir=/opt/zegami
--manage-script-name
--mount=/zegami=dzapi.app.application:app
--socket=/tmp/zegami-uwsgi.sock
--chmod-socket=666
--plugin=python
--wsgi-disable-file-wrapper
directory=/opt/zegami
environment=PYTHONPATH=/opt/zegami:/opt/zegami/lib,PYTHONHOME=/opt/zegami_python/anaconda/,USER=zegami,HOME=/home/zegami
user=zegami
autorestart=true
redirect_stderr=true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment