Update celery commands

This commit is contained in:
dvanaken
2020-02-06 15:48:31 -05:00
committed by Dana Van Aken
parent 9a5dea806f
commit 42fc5ebe3e
5 changed files with 6 additions and 8 deletions

View File

@@ -7,6 +7,7 @@
python3 manage.py makemigrations website
python3 manage.py migrate
python3 manage.py stopcelery
python3 manage.py startcelery
python3 manage.py runserver 0.0.0.0:8000 &

View File

@@ -5,15 +5,12 @@ addrport="0.0.0.0:8000"
# Wait for backend connection
/bin/bash wait-for-it.sh
# Kill any existing celery processes
pkill -9 -f celery
rm -f *.pid
## Needs a connection to a DB so migrations go here
python3 manage.py makemigrations website
python3 manage.py migrate
python3 manage.py createuser admin $ADMIN_PASSWORD --superuser
python3 manage.py startcelery
python3 manage.py stopcelery
python3 manage.py startcelery
echo ""
echo "-=------------------------------------------------------"