gunicorn/nginx

This commit is contained in:
j 2010-11-11 23:52:03 +01:00
parent b7ae5b70a9
commit dcd8731b75
2 changed files with 11 additions and 4 deletions

View file

@ -5,10 +5,13 @@ description "pandora daemon"
start on runlevel [2345] start on runlevel [2345]
stop on runlevel [!2345] stop on runlevel [!2345]
kill timeout 5
respawn respawn
chdir /srv/pandora/pandora env VENV=/srv/pandora
env USER=pandora
exec /srv/pandora/bin/gunicorn_django --daemon -u pandora -g pandora -b 127.0.0.1:8083 -w5 settings.py
script
cd $VENV/pandora
exec sudo -u $USER $VENV/bin/gunicorn_django -b 127.0.0.1:8083 -w5 $VENV/pandora/settings.py
end script

View file

@ -13,3 +13,7 @@ django_extensions
-e bzr+http://firefogg.org/dev/python-firefogg/#egg=python-firefogg -e bzr+http://firefogg.org/dev/python-firefogg/#egg=python-firefogg
-e git+git://github.com/dcramer/django-devserver#egg=django_devserver -e git+git://github.com/dcramer/django-devserver#egg=django_devserver
transmissionrpc transmissionrpc
#needs git to work with upstart
#https://github.com/benoitc/gunicorn/commit/f29c61091691135dcfae029a7eadf1663a06a73e
-e git+https://github.com/benoitc/gunicorn.git#egg=gunicorn