funquail/api/compose/django/server.sh
JuniorJPDJ 7e7cd25fa3 feat(api/Docker): automatically run migrations on container start
migrations do nothing when there's nothing to do and this allows easier version upgrades
2022-07-25 20:59:30 +00:00

4 lines
223 B
Bash
Executable file

#!/bin/bash -eux
python /app/manage.py collectstatic --noinput
python /app/manage.py migrate
gunicorn config.asgi:application -w ${FUNKWHALE_WEB_WORKERS-1} -k uvicorn.workers.UvicornWorker -b 0.0.0.0:5000 ${GUNICORN_ARGS-}