Skip to content
This repository has been archived by the owner on Mar 30, 2024. It is now read-only.

Fix superuser creation in startup.sh #3

Merged
merged 1 commit into from
Sep 21, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion mira/VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
3.0.2
3.0.2a
4 changes: 2 additions & 2 deletions startup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ python manage.py collectstatic --noinput
python manage.py migrate
python manage.py makemessages -i venv -l fr
python manage.py compilemessages -i venv -l fr
if [ -z "$CREATE_SUPERUSER" ]; then
if [ ! -z ${CREATE_SUPERUSER+x} ]; then
python manage.py createsuperuser
fi

exec gunicorn --chdir mira --bind :8000 --env RUN_MAIN=true mira.wsgi:application
exec gunicorn --chdir mira --bind :8000 --env RUN_MAIN=true mira.wsgi:application