aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Makefile4
1 files changed, 4 insertions, 0 deletions
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