Add wsgi goodies

This commit is contained in:
Tom Naessens 2015-03-31 15:11:40 +02:00
parent 1c76a318cd
commit 5515b7c370
2 changed files with 28 additions and 0 deletions

4
app/wsgi.py Normal file
View file

@ -0,0 +1,4 @@
from app import app
if __name__ == "__main__":
app.run()

24
uwsgi.ini Normal file
View file

@ -0,0 +1,24 @@
# mysite_uwsgi.ini file
[uwsgi]
plugins = python
# Django-related settings
# the base directory (full path)
chdir = /home/james/production
# Django's wsgi file
module = james.wsgi
# the virtualenv (full path)
home = /home/james/production/env
# process-related settings
# master
master = true
# maximum number of worker processes
processes = 1
# the socket (use the full path to be safe
socket = /tmp/james.sock
# ... with appropriate permissions - may be needed
chmod-socket = 664
# clear environment on exit
vacuum = true