feat(app): add environment variables to automatically create superuser on startup

This commit is contained in:
Herculino Trotta
2025-03-31 02:11:13 -03:00
parent 92c7a29b6a
commit 046e02d506
5 changed files with 149 additions and 1 deletions

View File

@@ -11,4 +11,6 @@ python manage.py migrate
# Create flag file to signal migrations are complete
touch /tmp/migrations_complete
python manage.py setup_users
exec python manage.py runserver 0.0.0.0:8000

View File

@@ -13,4 +13,6 @@ python manage.py migrate
# Create flag file to signal migrations are complete
touch /tmp/migrations_complete
python manage.py setup_users
exec gunicorn WYGIWYH.wsgi:application --bind 0.0.0.0:8000 --timeout 600