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

Commit

Permalink
Fix superuser creation in startup.sh
Browse files Browse the repository at this point in the history
Test CREATE_SUPERUSER variable correctly.
  • Loading branch information
eric-intuitem committed Sep 21, 2023
1 parent 020c6a9 commit 0dbc3b2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
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

0 comments on commit 0dbc3b2

Please sign in to comment.