forked from 0x2620/pandora
gunicorn/nginx
This commit is contained in:
parent
b7ae5b70a9
commit
dcd8731b75
2 changed files with 11 additions and 4 deletions
|
@ -5,10 +5,13 @@ description "pandora daemon"
|
|||
|
||||
start on runlevel [2345]
|
||||
stop on runlevel [!2345]
|
||||
|
||||
kill timeout 5
|
||||
respawn
|
||||
|
||||
chdir /srv/pandora/pandora
|
||||
|
||||
exec /srv/pandora/bin/gunicorn_django --daemon -u pandora -g pandora -b 127.0.0.1:8083 -w5 settings.py
|
||||
env VENV=/srv/pandora
|
||||
env USER=pandora
|
||||
|
||||
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
|
||||
|
|
|
@ -13,3 +13,7 @@ django_extensions
|
|||
-e bzr+http://firefogg.org/dev/python-firefogg/#egg=python-firefogg
|
||||
-e git+git://github.com/dcramer/django-devserver#egg=django_devserver
|
||||
transmissionrpc
|
||||
|
||||
#needs git to work with upstart
|
||||
#https://github.com/benoitc/gunicorn/commit/f29c61091691135dcfae029a7eadf1663a06a73e
|
||||
-e git+https://github.com/benoitc/gunicorn.git#egg=gunicorn
|
||||
|
|
Loading…
Reference in a new issue