diff --git a/docker_assets/run.sh b/docker_assets/run.sh index 6019b83f..e8a4cd22 100644 --- a/docker_assets/run.sh +++ b/docker_assets/run.sh @@ -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 \