Skip to content

Merge pull request #79 from CenterForDigitalHumanities/bug-fix-navplace #76

Merge pull request #79 from CenterForDigitalHumanities/bug-fix-navplace

Merge pull request #79 from CenterForDigitalHumanities/bug-fix-navplace #76

Workflow file for this run

name: Rerum Geolocator Site Deploy
on:
push:
branches:
main
jobs:
deploy:
strategy:
matrix:
node-version: [21]
machines: [vlcdhprdp01]
runs-on: ${{ matrix.machines }}
steps:
- uses: actions/checkout@master
- run: |
if [[ ! -e /srv/node/logs/rerum_geolocator.txt ]]; then
mkdir -p /srv/node/logs
touch /srv/node/logs/rerum_geolocator.txt
fi
cd /srv/node/geolocator/
pm2 stop geolocator
git stash
git pull
npm install
pm2 start -i max bin/geolocator.js