bornhack-website/Makefile

25 lines
522 B
Makefile
Raw Normal View History

2017-11-05 16:46:26 +00:00
all: copy_environment_settings build db_up sleep migrate bootstrap
copy_environment_settings:
cp src/bornhack/dev_environment_settings.py src/bornhack/environment_settings.py
build:
docker-compose build
db_up:
docker-compose up -d db
migrate:
docker-compose run web /usr/local/bin/python src/manage.py migrate
bootstrap:
docker-compose run web /usr/local/bin/python src/manage.py bootstrap-devsite
sleep:
echo "Sleeping to ensure that the db is up."; sleep 3
web_up:
docker-compose up web
2017-11-05 16:46:26 +00:00
run: db_up web_up