aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@archive.org>2021-01-25 17:23:12 -0800
committerBryan Newbold <bnewbold@archive.org>2021-01-25 17:23:12 -0800
commit02c18478fd0fd0539f2be7930c0a4b4fc9bffb60 (patch)
treec7018d2a3172337619c07aec7d1839373c8288a3
parent5aed3803affdb3f05b881cb90496180be45da440 (diff)
downloadfatcat-scholar-02c18478fd0fd0539f2be7930c0a4b4fc9bffb60.tar.gz
fatcat-scholar-02c18478fd0fd0539f2be7930c0a4b4fc9bffb60.zip
update dev+qa configuration
-rw-r--r--Makefile4
-rw-r--r--settings.toml5
2 files changed, 7 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index b83ddf3..bca5b3f 100644
--- a/Makefile
+++ b/Makefile
@@ -37,7 +37,7 @@ serve: ## Run web service locally, with reloading
.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
+ ENV_FOR_DYNACONF=development-qa pipenv run uvicorn fatcat_scholar.web:app --reload --port 9819
.PHONY: serve-gunicorn
serve-gunicorn: ## Run web service under gunicorn
@@ -48,7 +48,7 @@ fetch-works: ## Fetches some works from any release .json in the data dir
cat data/release_*.json | jq . -c | pipenv run python -m fatcat_scholar.work_pipeline run_releases | pv -l > data/work_intermediate.json
.PHONY: fetch-sim
-fetch-sim: ## Fetches some SIM pages
+fetch-sim: ## Fetches some (not all) SIM pages
pipenv run python -m fatcat_scholar.sim_pipeline run_issue_db --limit 500 | pv -l > data/sim_intermediate.json
.PHONY: dev-index
diff --git a/settings.toml b/settings.toml
index efdc322..0f10e7f 100644
--- a/settings.toml
+++ b/settings.toml
@@ -49,6 +49,11 @@ ELASTICSEARCH_WRITE_FULLTEXT_INDEX = "dev_scholar_fulltext"
ELASTICSEARCH_PUBLIC_URL = "http://localhost:9200"
KAFKA_BROKERS = ["localhost"]
+[development-qa]
+SCHOLAR_ENV = "dev"
+ELASTICSEARCH_QUERY_BASE = "http://scholar-svc500.fatcat.wiki:9292"
+ELASTICSEARCH_PUBLIC_URL = "http://scholar-svc500.fatcat.wiki:9292"
+
[qa]
SCHOLAR_ENV = "qa"
ELASTICSEARCH_QUERY_BASE = "http://scholar-svc500.fatcat.wiki:9292"