add update script

This commit is contained in:
liamcottle
2024-03-23 13:03:12 +13:00
parent bbe724aab7
commit e787cafb26

13
update.sh Normal file
View File

@ -0,0 +1,13 @@
# pull changes from git
git fetch && git pull
# update node deps
npm install
# migrate database
npx --yes prisma migrate deploy
npx --yes prisma generate
# restart services
service meshtastic-map restart
service meshtastic-map-mqtt restart