27742db4fb
this repo is a reinitialization with a change in the concept previous repo had git subtree of django-musician and django-orchestra, that was too static for our interest next approach is a script that pulls git repos, and that would be needed if you want to build everything, if not, just with the docker compose you would have enough for running the containers, hence, downloading the images from the docker registry
22 lines
487 B
Bash
Executable file
22 lines
487 B
Bash
Executable file
#!/bin/sh
|
|
|
|
set -e
|
|
set -u
|
|
#set -x
|
|
|
|
# go to the same path as the script
|
|
cd "$(dirname ${0})"
|
|
|
|
cat > .env <<END
|
|
SECRET_KEY=${SECRET_KEY}
|
|
API_BASE_URL=${API_BASE_URL}
|
|
ALLOWED_HOSTS=${ALLOWED_HOSTS:-.localhost,127.0.0.1}
|
|
STATIC_ROOT=${STATIC_ROOT:-/static/}
|
|
DEBUG=True
|
|
END
|
|
|
|
# move the migrate thing in docker entrypoint
|
|
# inspired by https://medium.com/analytics-vidhya/django-with-docker-and-docker-compose-python-part-2-8415976470cc
|
|
./manage.py migrate
|
|
./manage.py runserver 0.0.0.0:8080
|