[debug] add current version/commit to the footer

This commit is contained in:
Andrea Vos 2022-10-09 22:03:09 +02:00
parent a951b268bd
commit 41350428ec

View File

@ -21,10 +21,10 @@ stop:
node_modules/.bin/avris-daemonise stop webserver node_modules/.bin/avris-daemonise stop webserver
deploy: install deploy: install
git log -n 1 --pretty=format:"%H" > ./cache/version
yarn build yarn build
node server/migrate.js node server/migrate.js
echo "\ncaches.keys().then(cs=>cs.forEach(c=>caches.delete(c)))" >> static/sw.js echo "\ncaches.keys().then(cs=>cs.forEach(c=>caches.delete(c)))" >> static/sw.js
git log -n 1 --pretty=format:"%H" > ./cache/version
ln -sfn ../data/img ./static/img-local ln -sfn ../data/img ./static/img-local
ln -sfn ../data/docs ./static/docs-local ln -sfn ../data/docs ./static/docs-local