Browse Source

Do not make migrations during deployment...

V1
Joshua Rubingh 1 year ago
parent
commit
8304aab759
  1. 4
      docker/entrypoint.api.sh

4
docker/entrypoint.api.sh

@ -11,9 +11,9 @@ if [ "$DATABASE" = "postgres" ]; then @@ -11,9 +11,9 @@ if [ "$DATABASE" = "postgres" ]; then
fi
# Make migrations and migrate the database.
echo "Making migrations and migrating the database. "
echo "Migrating the database. "
# Should migrations not already be made.....
python manage.py makemigrations --noinput
# python manage.py makemigrations --noinput
python manage.py migrate --noinput
# This initial data should only run once..... not sure what happens if run multiple times

Loading…
Cancel
Save