Skip to content

Commit

Permalink
feat(sample_project): automaticall add admin
Browse files Browse the repository at this point in the history
Closes: #1292
  • Loading branch information
b1rger committed Oct 23, 2024
1 parent 25f30af commit ac68a50
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions sample_project/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,8 @@
/app/manage.py migrate
/app/manage.py setup || true
/app/manage.py loaddata sample_project --settings=sample_project.settings_loaddata
if [ -n "${DJANGO_SUPERUSER_PASSWORD+x}" ]; then
echo "Creating adchadmin user with password $DJANGO_SUPERUSER_PASSWORD"
/app/manage.py createsuperuser --email [email protected] --user acdhadmin --noinput
fi
/app/manage.py runserver 0.0.0.0:5000

0 comments on commit ac68a50

Please sign in to comment.