Last active
February 21, 2017 06:15
-
-
Save wonderbeyond/9f304c5596d11dbe2054 to your computer and use it in GitHub Desktop.
[obsolete]uwsgi+upstart conf sample
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| description "Meets uwsgi instance" | |
| #start on socket PROTO=inet PORT=3031 | |
| start on runlevel [2345] | |
| stop on runlevel [06] | |
| respawn | |
| setuid mama | |
| setgid mama | |
| env LANG=en_US.UTF-8 | |
| exec /home/mama/venvs/meets/bin/uwsgi --ini /home/mama/meets/server/mama/uwsgi.ini |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [uwsgi] | |
| #plugins-dir=/usr/lib/uwsgi/plugins/ | |
| #plugins=python3 | |
| uid=mama | |
| gid=mama | |
| socket=:3031 | |
| stats=:5050 | |
| chdir=/home/mama/meets/server | |
| pythonpath=/home/mama/meets/server | |
| venv=/home/mama/venvs/meets | |
| module=mama.wsgi:application | |
| pidfile=/tmp/meets.pid | |
| master=True | |
| processes=5 | |
| max-requests=5000 | |
| vacuum=True | |
| #no need to daemonize under upstart | |
| #daemonize=/var/log/uwsgi/meets/meets.log | |
| log-maxsize=1024000 | |
| touch-reload=/home/mama/meets/server/mama/wsgi.py | |
| die-on-term=True |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment