mirror of
https://github.com/django-helpdesk/django-helpdesk.git
synced 2025-06-20 17:47:58 +02:00
Adapts docker container entrypoint to be launched more than once
This commit is contained in:
parent
cc6e597840
commit
eb4a4cd7b7
@ -7,8 +7,12 @@ set -o nounset
|
|||||||
pip3 install -e . --user || pip3 install -e .
|
pip3 install -e . --user || pip3 install -e .
|
||||||
pip3 install -e demo --user || pip3 install -e demo
|
pip3 install -e demo --user || pip3 install -e demo
|
||||||
python3 demo/manage.py migrate --noinput
|
python3 demo/manage.py migrate --noinput
|
||||||
|
|
||||||
|
if [ ! -e "/app/demo/demodesk/db.sqlite3" ]; then
|
||||||
DJANGO_SUPERUSER_PASSWORD=Test1234 python3 demo/manage.py createsuperuser --username admin --email helpdesk@example.com --noinput
|
DJANGO_SUPERUSER_PASSWORD=Test1234 python3 demo/manage.py createsuperuser --username admin --email helpdesk@example.com --noinput
|
||||||
# Install fixtures
|
# Install fixtures
|
||||||
python3 demo/manage.py loaddata emailtemplate.json
|
python3 demo/manage.py loaddata emailtemplate.json
|
||||||
python3 demo/manage.py loaddata demo.json
|
python3 demo/manage.py loaddata demo.json
|
||||||
python3 demo/manage.py runserver 0:8080
|
fi
|
||||||
|
|
||||||
|
python3 demo/manage.py runserver 0.0.0.0:8080
|
||||||
|
Loading…
x
Reference in New Issue
Block a user