Merge pull request #79 from CenterForDigitalHumanities/bug-fix-navplace #76
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |