summaryrefslogtreecommitdiffstats
path: root/extra
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@archive.org>2022-04-07 17:08:58 -0700
committerBryan Newbold <bnewbold@archive.org>2022-04-07 17:08:58 -0700
commitaace407aecf934b72263de9d1bccb20dd2093037 (patch)
tree95687dbcb487f84a9739cf08fa551bc94000f319 /extra
parent87445479e1a8ed9f6caeeb4999c377df908e2f4a (diff)
downloadfatcat-scholar-aace407aecf934b72263de9d1bccb20dd2093037.tar.gz
fatcat-scholar-aace407aecf934b72263de9d1bccb20dd2093037.zip
sitemap: single-command sitemap update script
Diffstat (limited to 'extra')
-rwxr-xr-xextra/sitemap/update_prod.sh11
1 files changed, 11 insertions, 0 deletions
diff --git a/extra/sitemap/update_prod.sh b/extra/sitemap/update_prod.sh
new file mode 100755
index 0000000..c26dabe
--- /dev/null
+++ b/extra/sitemap/update_prod.sh
@@ -0,0 +1,11 @@
+#!/usr/bin/env bash
+
+set -euo pipefail
+
+export SCHOLARREPLICAHOST=wbgrp-svc500.us.archive.org
+
+cd /srv/fatcat_scholar/sitemap
+/srv/fatcat_scholar/src/extra/sitemap/work_urls_query.sh
+/srv/fatcat_scholar/src/extra/sitemap/access_urls_query.sh
+/srv/fatcat_scholar/src/extra/sitemap/generate_sitemap_indices.py
+scp *.txt *.xml $SCHOLARREPLICAHOST:/srv/fatcat_scholar/sitemap