diff options
author | Bryan Newbold <bnewbold@archive.org> | 2020-08-12 11:47:55 -0700 |
---|---|---|
committer | Bryan Newbold <bnewbold@archive.org> | 2020-08-12 11:47:55 -0700 |
commit | b1ff9c3954f58442ba754573859fc21183c31298 (patch) | |
tree | cb96bdf5cb0d78919df13b370497ab6e34ac0089 /Makefile | |
parent | 2c681e32756538c84b292cc95b623ee9758846a6 (diff) | |
download | fatcat-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-- | Makefile | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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 |