Remove reset DB from entryscript
This commit is contained in:
parent
6a080bdfe4
commit
705a146c93
|
|
@ -6,16 +6,9 @@ set -o nounset
|
|||
|
||||
python /app/manage.py collectstatic --no-input --no-post-process
|
||||
|
||||
|
||||
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
|
||||
python /app/manage.py migrate
|
||||
|
||||
|
||||
/usr/local/bin/gunicorn config.asgi --bind 0.0.0.0:7555 --chdir=/app -k uvicorn.workers.UvicornWorker
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue