Remove reset schema from docker_start
This commit is contained in:
parent
2d97b0561c
commit
66047a95b7
|
|
@ -6,7 +6,16 @@ set -o nounset
|
||||||
|
|
||||||
python /app/manage.py collectstatic --no-input --no-post-process
|
python /app/manage.py collectstatic --no-input --no-post-process
|
||||||
|
|
||||||
# TODO remove after stabilisation
|
|
||||||
python /app/manage.py reset_schema
|
if [ -z "${IT_RESET_SCHEMA}" ]; then
|
||||||
|
echo "IT_RESET_SCHEMA is not set, skipping schema reset"
|
||||||
|
python /app/manage.py migrate --no-input
|
||||||
|
else
|
||||||
|
echo "IT_RESET_SCHEMA is set, resetting schema"
|
||||||
|
python /app/manage.py reset_schema --no-input
|
||||||
|
fi
|
||||||
|
|
||||||
|
python /app/manage.py collectstatic --no-input --no-post-process
|
||||||
|
|
||||||
|
|
||||||
/usr/local/bin/gunicorn config.asgi --bind 0.0.0.0:7555 --chdir=/app -k uvicorn.workers.UvicornWorker
|
/usr/local/bin/gunicorn config.asgi --bind 0.0.0.0:7555 --chdir=/app -k uvicorn.workers.UvicornWorker
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue