Skip to content

Commit dbb89d2

Browse files
committed
Add RUN_POPULATE check to run manage.py populate
1 parent 7d4fd82 commit dbb89d2

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

docker/django-base/django-run

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,10 @@
33
# Django Migrate
44
/usr/local/bin/python3 /app/manage.py migrate --noinput
55

6+
# If RUN_POPULATE is set, run populate
7+
if [[ ! -z "${RUN_POPULATE}" ]]; then
8+
/usr/local/bin/python3 /app/manage.py populate
9+
fi
10+
611
# Run UWSGI
712
exec /usr/local/bin/uwsgi --ini /app/setup.cfg

0 commit comments

Comments
 (0)