run celery scheduler, compile pyc, pandora user might not have write permissions

This commit is contained in:
j 2011-10-27 13:27:03 +02:00
commit fc1047bde1
4 changed files with 4 additions and 3 deletions

View file

@ -16,6 +16,7 @@ script
test -e /var/log/pandora || (mkdir -p /var/log/pandora && chown $USER:$USER /var/log/pandora)
test -e /var/run/pandora || (mkdir -p /var/run/pandora && chown $USER:$USER /var/run/pandora)
cd $VENV/pandora
./manage.py compile_pyc
exec /usr/bin/sudo -u $USER $VENV/bin/gunicorn_django \
--bind 127.0.0.1:2620 \
--timeout 90 \