From fc1047bde13e1390bc099d66ad7c096ee5d08979 Mon Sep 17 00:00:00 2001 From: j <0x006A@0x2620.org> Date: Thu, 27 Oct 2011 13:27:03 +0200 Subject: [PATCH] run celery scheduler, compile pyc, pandora user might not have write permissions --- README | 2 +- etc/init/pandora-encoding.conf | 2 +- etc/init/pandora.conf | 1 + update.sh | 2 +- 4 files changed, 4 insertions(+), 3 deletions(-) diff --git a/README b/README index 83116ded4..a83494944 100644 --- a/README +++ b/README @@ -54,7 +54,7 @@ Running developer environment: in one terminal: ./manage.py runserver and in another one: - ./manage.py celeryd -Q default,encoding + ./manage.py celeryd -Q default,encoding -B Updating database: right now database updates are not managed, each time you update to current bzr diff --git a/etc/init/pandora-encoding.conf b/etc/init/pandora-encoding.conf index 9129a13c7..0d5685581 100644 --- a/etc/init/pandora-encoding.conf +++ b/etc/init/pandora-encoding.conf @@ -17,7 +17,7 @@ test -e /var/log/pandora || (mkdir -p /var/log/pandora && chown $USER:$USER /var test -e /var/run/pandora || (mkdir -p /var/run/pandora && chown $USER:$USER /var/run/pandora) cd $VENV/pandora exec /usr/bin/sudo -u $USER $VENV/bin/python $VENV/pandora/manage.py celeryd \ - -B \ + -B -s /var/run/pandora/celerybeat-schedule \ -Q encoding \ -n pandora-encoding \ -p /var/run/pandora/pandora-encoding.pid \ diff --git a/etc/init/pandora.conf b/etc/init/pandora.conf index cf624360a..cfdbb8ba5 100644 --- a/etc/init/pandora.conf +++ b/etc/init/pandora.conf @@ -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 \ diff --git a/update.sh b/update.sh index 4572addd9..45083d47a 100755 --- a/update.sh +++ b/update.sh @@ -5,4 +5,4 @@ cd static/oxjs bzr pull http://code.0x2620.org/oxjs/ test -e src/python-ox && cd src/python-ox && bzr pull http://code.0x2620.org/python-ox/ cd $base -cd pandora && ./manage.py update_static +cd pandora && ./manage.py update_static && ./manage.py compile_pyc