simplyfy celery queue deployment

This commit is contained in:
j 2010-11-30 22:41:58 +01:00
commit 7013814af8
5 changed files with 21 additions and 49 deletions

View file

@ -12,6 +12,10 @@ env VENV=/srv/pandora
env USER=pandora
script
test -e /var/log/pandora || (mkdir -p /var/log/pandora && chown $USER:$USER /var/log/pandora)
cd $VENV/pandora
exec sudo -u $USER $VENV/bin/gunicorn_django -b 127.0.0.1:2620 -w5 $VENV/pandora/settings.py
exec /usr/bin/sudo -u $USER $VENV/bin/gunicorn_django \
-b 127.0.0.1:2620 \
--log-level info --log-file /var/log/pandora/pandora.log \
-w5 $VENV/pandora/settings.py
end script