mirror of
https://github.com/GSA/notifications-api.git
synced 2026-02-05 02:41:14 -05:00
Merge pull request #3224 from alphagov/make-help
Add make help commands for commonly used tasks
This commit is contained in:
10
Makefile
10
Makefile
@@ -22,17 +22,17 @@ NOTIFY_CREDENTIALS ?= ~/.notify-credentials
|
|||||||
## DEVELOPMENT
|
## DEVELOPMENT
|
||||||
|
|
||||||
.PHONY: bootstrap
|
.PHONY: bootstrap
|
||||||
bootstrap: generate-version-file
|
bootstrap: generate-version-file ## Set up everything to run the app
|
||||||
pip3 install -r requirements_for_test.txt
|
pip3 install -r requirements_for_test.txt
|
||||||
createdb notification_api || true
|
createdb notification_api || true
|
||||||
. environment.sh && flask db upgrade
|
. environment.sh && flask db upgrade
|
||||||
|
|
||||||
.PHONY: run-flask
|
.PHONY: run-flask
|
||||||
run-flask:
|
run-flask: ## Run flask
|
||||||
. environment.sh && flask run -p 6011
|
. environment.sh && flask run -p 6011
|
||||||
|
|
||||||
.PHONY: run-celery
|
.PHONY: run-celery
|
||||||
run-celery:
|
run-celery: ## Run celery
|
||||||
. environment.sh && celery \
|
. environment.sh && celery \
|
||||||
-A run_celery.notify_celery worker \
|
-A run_celery.notify_celery worker \
|
||||||
--pidfile="/tmp/celery.pid" \
|
--pidfile="/tmp/celery.pid" \
|
||||||
@@ -40,7 +40,7 @@ run-celery:
|
|||||||
--concurrency=4
|
--concurrency=4
|
||||||
|
|
||||||
.PHONY: run-celery-beat
|
.PHONY: run-celery-beat
|
||||||
run-celery-beat:
|
run-celery-beat: ## Run celery beat
|
||||||
. environment.sh && celery \
|
. environment.sh && celery \
|
||||||
-A run_celery.notify_celery beat \
|
-A run_celery.notify_celery beat \
|
||||||
--loglevel=INFO
|
--loglevel=INFO
|
||||||
@@ -167,7 +167,7 @@ check-if-migrations-to-run:
|
|||||||
@echo $(shell python3 scripts/check_if_new_migration.py)
|
@echo $(shell python3 scripts/check_if_new_migration.py)
|
||||||
|
|
||||||
.PHONY: cf-deploy-failwhale
|
.PHONY: cf-deploy-failwhale
|
||||||
cf-deploy-failwhale: #
|
cf-deploy-failwhale:
|
||||||
$(if ${CF_SPACE},,$(error Must target space, eg `make preview cf-deploy-failwhale`))
|
$(if ${CF_SPACE},,$(error Must target space, eg `make preview cf-deploy-failwhale`))
|
||||||
cd ./paas-failwhale; cf push notify-api-failwhale -f manifest.yml
|
cd ./paas-failwhale; cf push notify-api-failwhale -f manifest.yml
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user