mirror of
https://github.com/wger-project/wger.git
synced 2026-11-30 02:01:02 +01:00
Allow to automatically perform database migrations
See https://github.com/wger-project/docker/issues/15
This commit is contained in:
@@ -38,6 +38,13 @@ then
|
||||
python3 manage.py collectstatic --no-input
|
||||
fi
|
||||
|
||||
# Perform database migrations
|
||||
if [[ "$DJANGO_PERFORM_MIGRATIONS" == "True" ]];
|
||||
then
|
||||
echo "Performing database migrations"
|
||||
python3 manage.py migrate
|
||||
fi
|
||||
|
||||
# Run the server
|
||||
if [[ "$WGER_USE_GUNICORN" == "True" ]];
|
||||
then
|
||||
|
||||
Reference in New Issue
Block a user