summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--python/config.py6
-rw-r--r--python/fatcat/templates/base.html6
-rw-r--r--python/fatcat/templates/container_view.html2
-rw-r--r--python/fatcat/templates/creator_view.html2
-rw-r--r--python/fatcat/templates/file_view.html2
-rw-r--r--python/fatcat/templates/home.html2
-rw-r--r--python/fatcat/templates/release_view.html2
-rw-r--r--python/fatcat/templates/work_view.html2
8 files changed, 13 insertions, 11 deletions
diff --git a/python/config.py b/python/config.py
index 684734f0..cb2c7bf0 100644
--- a/python/config.py
+++ b/python/config.py
@@ -8,9 +8,11 @@ class Config(object):
SQLALCHEMY_DATABASE_URI = os.environ.get('DATABASE_URI') or \
'sqlite:///' + os.path.join(basedir, 'fatcat_dev.sqlite')
SQLALCHEMY_TRACK_MODIFICATIONS = False
- ELASTIC_BACKEND = "http://search.qa.fatcat.wiki:8088"
- ELASTIC_INDEX = "crossref-works"
GIT_REVISION = subprocess.check_output(["git", "describe", "--always"]).strip()
+ # This is, effectively, the QA/PROD flag
+ FATCAT_DOMAIN = "qa.fatcat.wiki"
+ ELASTIC_INDEX = "crossref-works"
+ ELASTIC_BACKEND = "http://search.{}:8088".format(FATCAT_DOMAIN)
# "Event more verbose" debug options. SECRET_KEY is bogus.
#SQLALCHEMY_ECHO = True
diff --git a/python/fatcat/templates/base.html b/python/fatcat/templates/base.html
index bc2b680f..617450c2 100644
--- a/python/fatcat/templates/base.html
+++ b/python/fatcat/templates/base.html
@@ -23,7 +23,7 @@
fatcat!
</a>
<a href="/about" class="item">About</a>
- <a href="https://guide.fatcat.wiki/" class="item">Guide</a>
+ <a href="https://guide.{{ config.FATCAT_DOMAIN }}/" class="item">Guide</a>
<div class="right menu">
<div class="item">
<form class="" role="search" action="/release/search" method="get">
@@ -63,9 +63,9 @@
<div class="ui horizontal inverted small divided link list">
<a class="item" href="/">fatcat!</a>
<a class="item" href="/about">About</a>
- <a class="item" href="https://guide.fatcat.wiki/Sources</a>
+ <a class="item" href="https://guide.{{ config.FATCAT_DOMAIN }}/Sources</a>
<a class="item" href="#TODO">Status</a>
- <a class="item" href="https://guide.fatcat.wiki/bulk_exports.html">Bulk Exports</a>
+ <a class="item" href="https://guide.{{ config.FATCAT_DOMAIN }}/bulk_exports.html">Bulk Exports</a>
<a class="item" href="https://git.bnewbold.net/fatcat/">Source Code (<code>{{ config.GIT_REVISION.decode() }}</code>)</a>
</div>
</div>
diff --git a/python/fatcat/templates/container_view.html b/python/fatcat/templates/container_view.html
index 865cbaeb..c2ca7327 100644
--- a/python/fatcat/templates/container_view.html
+++ b/python/fatcat/templates/container_view.html
@@ -94,7 +94,7 @@ Raw Object:
<b>Fatcat Bits</b>
<p>State is "{{ container.state }}". Revision:
<br><small><code>{{ container.revision }}</code></small>
-<br><a href="https://api.qa.fatcat.wiki/v0/container/{{ container.ident }}">As JSON object via API</a>
+<br><a href="https://api.{{ config.FATCAT_DOMAIN }}/v0/container/{{ container.ident }}">As JSON object via API</a>
</div>
<div class="two ui buttons bottom attached">
diff --git a/python/fatcat/templates/creator_view.html b/python/fatcat/templates/creator_view.html
index 25a4f61a..2ce01fb6 100644
--- a/python/fatcat/templates/creator_view.html
+++ b/python/fatcat/templates/creator_view.html
@@ -68,7 +68,7 @@ Raw Object:
<b>Fatcat Bits</b>
<p>State is "{{ creator.state }}". Revision:
<br><small><code>{{ creator.revision }}</code></small>
-<br><a href="https://api.qa.fatcat.wiki/v0/creator/{{ creator.ident }}">As JSON object via API</a>
+<br><a href="https://api.{{ config.FATCAT_DOMAIN }}/v0/creator/{{ creator.ident }}">As JSON object via API</a>
</div>
<div class="two ui buttons bottom attached">
diff --git a/python/fatcat/templates/file_view.html b/python/fatcat/templates/file_view.html
index febc2b19..70ce8771 100644
--- a/python/fatcat/templates/file_view.html
+++ b/python/fatcat/templates/file_view.html
@@ -93,7 +93,7 @@ Raw Object:
<b>Fatcat Bits</b>
<p>State is "{{ file.state }}". Revision:
<br><small><code>{{ file.revision }}</code></small>
-<br><a href="https://api.qa.fatcat.wiki/v0/file/{{ file.ident }}">As JSON object via API</a>
+<br><a href="https://api.{{ config.FATCAT_DOMAIN }}/v0/file/{{ file.ident }}">As JSON object via API</a>
</div>
<div class="two ui buttons bottom attached">
diff --git a/python/fatcat/templates/home.html b/python/fatcat/templates/home.html
index e8a5da21..4d3b44a1 100644
--- a/python/fatcat/templates/home.html
+++ b/python/fatcat/templates/home.html
@@ -20,7 +20,7 @@
<p>This is versioned, user-editable catalog of research publications: journal
articles, conference proceedings, pre-prints, etc. Features include archival
file-level metadata (verified digests and long-term copies, in addition to
-URLs), a <a href="https://api.fatcat.wiki">documented API</a>, and work/release
+URLs), a <a href="https://api.{{ config.FATCAT_DOMAIN }}">documented API</a>, and work/release
indexing (aka, linking together of pre-prints and final copies).
<a href="/about">Read more...</a>
diff --git a/python/fatcat/templates/release_view.html b/python/fatcat/templates/release_view.html
index cefbd047..96430f5f 100644
--- a/python/fatcat/templates/release_view.html
+++ b/python/fatcat/templates/release_view.html
@@ -247,7 +247,7 @@ This release citing other releases.
<b>Fatcat Bits</b>
<p>State is "{{ release.state }}". Revision:
<br><small><code>{{ release.revision }}</code></small>
-<br><a href="https://api.qa.fatcat.wiki/v0/release/{{ release.ident }}?expand=container,files">As JSON object via API</a>
+<br><a href="https://api.{{ config.FATCAT_DOMAIN }}/v0/release/{{ release.ident }}?expand=container,files">As JSON object via API</a>
</div>
<div class="two ui buttons bottom attached">
diff --git a/python/fatcat/templates/work_view.html b/python/fatcat/templates/work_view.html
index afee760e..87120e63 100644
--- a/python/fatcat/templates/work_view.html
+++ b/python/fatcat/templates/work_view.html
@@ -58,7 +58,7 @@ still reference the same underlying "work".
<b>Fatcat Bits</b>
<p>State is "{{ work.state }}". Revision:
<br><small><code>{{ work.revision }}</code></small>
-<br><a href="https://api.qa.fatcat.wiki/v0/work/{{ work.ident }}">As JSON object via API</a>
+<br><a href="https://api.{{ config.FATCAT_DOMAIN }}/v0/work/{{ work.ident }}">As JSON object via API</a>
</div>
<div class="two ui buttons bottom attached">