forked from 0x2620/pandora
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
2
README
2
README
|
@ -54,7 +54,7 @@ Running developer environment:
|
||||||
in one terminal:
|
in one terminal:
|
||||||
./manage.py runserver
|
./manage.py runserver
|
||||||
and in another one:
|
and in another one:
|
||||||
./manage.py celeryd -Q default,encoding
|
./manage.py celeryd -Q default,encoding -B
|
||||||
|
|
||||||
Updating database:
|
Updating database:
|
||||||
right now database updates are not managed, each time you update to current bzr
|
right now database updates are not managed, each time you update to current bzr
|
||||||
|
|
|
@ -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)
|
test -e /var/run/pandora || (mkdir -p /var/run/pandora && chown $USER:$USER /var/run/pandora)
|
||||||
cd $VENV/pandora
|
cd $VENV/pandora
|
||||||
exec /usr/bin/sudo -u $USER $VENV/bin/python $VENV/pandora/manage.py celeryd \
|
exec /usr/bin/sudo -u $USER $VENV/bin/python $VENV/pandora/manage.py celeryd \
|
||||||
-B \
|
-B -s /var/run/pandora/celerybeat-schedule \
|
||||||
-Q encoding \
|
-Q encoding \
|
||||||
-n pandora-encoding \
|
-n pandora-encoding \
|
||||||
-p /var/run/pandora/pandora-encoding.pid \
|
-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/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)
|
test -e /var/run/pandora || (mkdir -p /var/run/pandora && chown $USER:$USER /var/run/pandora)
|
||||||
cd $VENV/pandora
|
cd $VENV/pandora
|
||||||
|
./manage.py compile_pyc
|
||||||
exec /usr/bin/sudo -u $USER $VENV/bin/gunicorn_django \
|
exec /usr/bin/sudo -u $USER $VENV/bin/gunicorn_django \
|
||||||
--bind 127.0.0.1:2620 \
|
--bind 127.0.0.1:2620 \
|
||||||
--timeout 90 \
|
--timeout 90 \
|
||||||
|
|
|
@ -5,4 +5,4 @@ cd static/oxjs
|
||||||
bzr pull http://code.0x2620.org/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/
|
test -e src/python-ox && cd src/python-ox && bzr pull http://code.0x2620.org/python-ox/
|
||||||
cd $base
|
cd $base
|
||||||
cd pandora && ./manage.py update_static
|
cd pandora && ./manage.py update_static && ./manage.py compile_pyc
|
||||||
|
|
Loading…
Reference in a new issue