add update script
This commit is contained in:
parent
bbe724aab7
commit
e787cafb26
1 changed files with 13 additions and 0 deletions
13
update.sh
Normal file
13
update.sh
Normal 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
|
||||
Loading…
Add table
Add a link
Reference in a new issue