Skip to content

Commit 7d51cc5

Browse files
committed
feat: guard migrations behind DJANGO_AUTO_MIGRATE
1 parent 0c539dd commit 7d51cc5

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

docker/bin/django-gunicorn

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
#!/usr/bin/env bash
22

3-
python manage.py migrate
3+
if [[ "${DJANGO_AUTO_MIGRATE:-true}" == "true" ]]; then
4+
python manage.py migrate
5+
fi
46

57
default_flags=(
68
-w 2

0 commit comments

Comments
 (0)