feat: change env settings and create superuser script
This commit is contained in:
@@ -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 "$@"
|
||||
|
||||
Reference in New Issue
Block a user