42 строки
1.0 KiB
Makefile
42 строки
1.0 KiB
Makefile
.PHONY: build migrate shell presto-cli up fixtures tests flake8
|
|
|
|
help:
|
|
@echo "Welcome to the Mission Control Api Service\n"
|
|
@echo "The list of commands for local development:\n"
|
|
@echo " build Builds the docker images for the docker-compose setup"
|
|
@echo " migrate Runs the Django database migrations"
|
|
@echo " shell Opens a Bash shell"
|
|
@echo " presto-cli Opens a Presto command line client"
|
|
@echo " up Runs the whole stack, served under http://localhost:8000/"
|
|
@echo " fixtures Generates sample data"
|
|
@echo " tests Run pytest tests using tox"
|
|
@echo " flake8 Run flake8 using tox"
|
|
|
|
build:
|
|
SERVICE_DOMAIN="" yarn build
|
|
docker-compose build
|
|
|
|
migrate:
|
|
docker-compose run web python manage.py migrate --run-syncdb
|
|
|
|
shell:
|
|
docker-compose exec web bash
|
|
|
|
django-shell:
|
|
docker-compose exec web ./manage.py shell
|
|
|
|
presto-cli:
|
|
docker-compose exec presto presto-cli
|
|
|
|
up:
|
|
docker-compose up
|
|
|
|
fixtures:
|
|
@bin/fixtures_init.sh
|
|
|
|
tests:
|
|
docker-compose run web tox -etests
|
|
|
|
flake8:
|
|
docker-compose run web tox -eflake8
|