Update pv fetching tool.
This commit is contained in:
parent
ad48a9ab06
commit
a624b9a472
2 changed files with 5 additions and 6 deletions
|
@ -29,8 +29,6 @@ check_status() {
|
|||
update_files() {
|
||||
bash _scripts/sh/create_pages.sh
|
||||
bash _scripts/sh/dump_lastmod.sh
|
||||
|
||||
find . | grep -E "(__pycache__|\.pyc|\.pyo$)" | xargs rm -rf
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -16,10 +16,11 @@
|
|||
set -eu
|
||||
|
||||
WORK_DIR=$(dirname $(dirname $(realpath "$0")))
|
||||
URL_FILE=${WORK_DIR}/assets/data/proxy.json
|
||||
PV_CACHE=${WORK_DIR}/assets/data/pageviews.json
|
||||
URL_FILE=${WORK_DIR}/_config.yml
|
||||
PV_CACHE=${WORK_DIR}/assets/js/data/pageviews.json
|
||||
|
||||
|
||||
PROXY_URL=$(jq -r '.proxyUrl' $URL_FILE)
|
||||
PROXY_URL=$(grep "proxy_endpoint:" $URL_FILE | sed "s/.*: '//g;s/'.*//")
|
||||
|
||||
wget $PROXY_URL -O $PV_CACHE
|
||||
|
||||
echo "ls $PV_CACHE"
|
Loading…
Reference in a new issue