.PHONY:init init-migration build run db-migrate test toxinit:build run docker-compose exec web flask db init docker-compose exec web flask db migrate docker-compose exec web flask db upgrade docker-compose exec web flask init@echo"Init done, containers running"build: docker-compose buildrun:@mkdir-p db docker-compose up -ddb-init: docker-compose exec web flask db initdb-migrate: docker-compose exec web flask db migratedb-upgrade: docker-compose exec web flask db upgradetest: docker-compose stop celery # stop celery to avoid conflicts with celery tests docker-compose start rabbitmq redis # ensuring both redis and rabbitmq are started docker-compose run -v$(PWD)/tests:/code/tests:ro web tox -etest docker-compose start celerytox: docker-compose stop celery # stop celery to avoid conflicts with celery tests docker-compose start rabbitmq redis # ensuring both redis and rabbitmq are started docker-compose run -v$(PWD)/tests:/code/tests:ro web tox -e y docker-compose start celerylint: docker-compose run web tox -e lint