Commit 2ef4beba authored by bhm15's avatar bhm15

adega#121: Fix docker bugs

parent a1494df5
# This commands will be run inside of the container web
# If ANY of this commands fails (return != 0) the container will be down
bash ./docker_scripts/wait_for_postgres.sh
python ./src/manage.py migrate
python ./src/manage.py runserver 0.0.0.0:8000
cd src
python manage.py makemigrations degree admission educator uploads
python manage.py migrate
python manage.py runserver 0.0.0.0:8000
......@@ -65,6 +65,6 @@ args = `arg="$(filter-out $@,$(MAKECMDGOALS))" && echo $${arg:-${1}}`
docker-manage:
@echo $(call args,"")
docker exec -it adega_web_1 python3 ./src/manage.py $(call args,"")
docker exec -it adega_web_1 bash -c "cd src; python3 manage.py $(call args,'')"
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment