feat: change env settings and create superuser script

This commit is contained in:
mohamad
2026-05-09 11:14:44 +03:30
parent 744ef69942
commit eb880e3e8b
5 changed files with 52 additions and 11 deletions
+6
View File
@@ -22,8 +22,14 @@ done
echo "PostgreSQL is ready."
echo "Collecting static files..."
python manage.py collectstatic --noinput
echo "Running database migrations..."
python manage.py migrate --noinput
echo "Creating superuser if not exists..."
python manage.py ensure_superuser
echo "Starting application..."
exec "$@"