run celery scheduler, compile pyc, pandora user might not have write permissions
This commit is contained in:
parent
910b8426dc
commit
fc1047bde1
4 changed files with 4 additions and 3 deletions
|
|
@ -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 \
|
||||
|
|
|
|||
|
|
@ -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 \
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue