mirror of
https://github.com/tubearchivist/tubearchivist
synced 2024-11-02 09:41:07 +00:00
collectstatic if not in debug
This commit is contained in:
parent
2d942fe9b5
commit
d6c124aae8
@ -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 \
|
||||
|
Loading…
Reference in New Issue
Block a user