collectstatic if not in debug

This commit is contained in:
simon 2023-02-02 13:12:12 +07:00
parent 2d942fe9b5
commit d6c124aae8
No known key found for this signature in database
GPG Key ID: 2C15AA5E89985DD4

View File

@ -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 \