simplyfy celery queue deployment
This commit is contained in:
parent
a8ccf08cd0
commit
7013814af8
5 changed files with 21 additions and 49 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue