3
0
Fork 0
mirror of https://github.com/ZeppelinBot/Zeppelin.git synced 2025-05-10 12:25:02 +00:00

Update update scripts and process files

This commit is contained in:
Dragory 2021-09-04 19:57:59 +03:00
parent 200e8ba89d
commit 6486dd7ca8
No known key found for this signature in database
GPG key ID: 5F387BA66DF8AAC1
6 changed files with 62 additions and 11 deletions

25
update-backend.sh Executable file
View file

@ -0,0 +1,25 @@
#!/bin/bash
# Load nvm
. ~/.nvm/nvm.sh
# Stop current processes
nvm use
pm2 delete process-bot.json
pm2 delete process-api.json
# Run update
nvm use
git pull
npm ci
cd backend
npm ci
npm run build
npm run migrate-prod
# Start processes again
cd ..
nvm use
pm2 start process-bot.json
pm2 start process-api.json