aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@archive.org>2020-08-12 11:47:55 -0700
committerBryan Newbold <bnewbold@archive.org>2020-08-12 11:47:55 -0700
commitb1ff9c3954f58442ba754573859fc21183c31298 (patch)
treecb96bdf5cb0d78919df13b370497ab6e34ac0089 /Makefile
parent2c681e32756538c84b292cc95b623ee9758846a6 (diff)
downloadfatcat-scholar-b1ff9c3954f58442ba754573859fc21183c31298.tar.gz
fatcat-scholar-b1ff9c3954f58442ba754573859fc21183c31298.zip
makefile: add dev-prod command for local dev against prod search index
Diffstat (limited to 'Makefile')
-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