|
|
|
@ -3,16 +3,20 @@
|
|
|
|
|
|
|
|
|
|
set -e
|
|
|
|
|
|
|
|
|
|
# check environment
|
|
|
|
|
# django setup
|
|
|
|
|
python manage.py makemigrations
|
|
|
|
|
python manage.py migrate
|
|
|
|
|
|
|
|
|
|
if [[ -z "$DJANGO_DEBUG" ]]; then
|
|
|
|
|
python manage.py collectstatic --noinput -c
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
# ta setup
|
|
|
|
|
python manage.py ta_envcheck
|
|
|
|
|
python manage.py ta_connection
|
|
|
|
|
python manage.py ta_startup
|
|
|
|
|
|
|
|
|
|
# start python application
|
|
|
|
|
python manage.py makemigrations
|
|
|
|
|
python manage.py migrate
|
|
|
|
|
# python manage.py collectstatic --noinput -c
|
|
|
|
|
|
|
|
|
|
# start all tasks
|
|
|
|
|
nginx &
|
|
|
|
|
celery -A home.tasks worker --loglevel=INFO &
|
|
|
|
|
celery -A home beat --loglevel=INFO \
|
|
|
|
|