From dd551b91113389a652e06e6835f13975c3c066fc Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Tue, 5 Jan 2021 15:24:28 -0800 Subject: Makefile: rename 'dev' and 'run' to 'serve' and 'serve-gunicorn' (etc) --- Makefile | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 7261808..f31ce7c 100644 --- a/Makefile +++ b/Makefile @@ -31,16 +31,16 @@ test: lint ## Run all tests and lints coverage: lint ## Run all tests with coverage PIPENV_DONT_LOAD_ENV=1 ENV_FOR_DYNACONF=test pipenv run pytest --cov --cov-report=term --cov-report=html -.PHONY: dev -dev: ## Run web service locally, with reloading +.PHONY: serve +serve: ## Run web service locally, with reloading ENV_FOR_DYNACONF=development pipenv run uvicorn fatcat_scholar.web:app --reload --port 9819 -.PHONY: dev-qa -dev-qa: ## Run web service locally, with reloading, but point search queries to QA search index +.PHONY: serve-qa +serve-qa: ## Run web service locally, with reloading, but point search queries to QA search index ENV_FOR_DYNACONF=qa DYNACONF_SCHOLAR_ENV=dev pipenv run uvicorn fatcat_scholar.web:app --reload --port 9819 -.PHONY: run -run: ## Run web service under gunicorn +.PHONY: serve-gunicorn +serve-gunicorn: ## Run web service under gunicorn pipenv run gunicorn fatcat_scholar.web:app -w 4 -k uvicorn.workers.UvicornWorker .PHONY: fetch-works -- cgit v1.2.3