mirror of
https://github.com/tubearchivist/tubearchivist.git
synced 2024-09-07 17:58:47 +00:00
25 lines
530 B
Bash
25 lines
530 B
Bash
#!/bin/bash
|
|
# startup script inside the container for tubearchivist
|
|
|
|
set -e
|
|
|
|
# django setup
|
|
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
|
|
python manage.py ta_migpath
|
|
|
|
# start all tasks
|
|
nginx &
|
|
celery -A home.tasks worker --loglevel=INFO &
|
|
celery -A home beat --loglevel=INFO \
|
|
-s "${BEAT_SCHEDULE_PATH:-${cachedir}/celerybeat-schedule}" &
|
|
uwsgi --ini uwsgi.ini
|