From b1ff9c3954f58442ba754573859fc21183c31298 Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Wed, 12 Aug 2020 11:47:55 -0700 Subject: makefile: add dev-prod command for local dev against prod search index --- Makefile | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 8ec51ad..bfa6d98 100644 --- a/Makefile +++ b/Makefile @@ -34,6 +34,10 @@ coverage: lint ## Run all tests with coverage dev: ## Run web service locally, with reloading ENV_FOR_DYNACONF=dev pipenv run uvicorn fatcat_scholar.web:app --reload --port 9819 +.PHONY: dev-prod +dev-prod: ## Run web service locally, with reloading, but point search queries to prod search index + ENV_FOR_DYNACONF=prod pipenv run uvicorn fatcat_scholar.web:app --reload --port 9819 + .PHONY: run run: ## Run web service under gunicorn pipenv run gunicorn fatcat_scholar.web:app -w 4 -k uvicorn.workers.UvicornWorker -- cgit v1.2.3