3
0
Fork 0
mirror of https://github.com/ZeppelinBot/Zeppelin.git synced 2025-05-23 17:45:03 +00:00

Update update scripts and process files

This commit is contained in:
Dragory 2021-09-04 19:57:59 +03:00
parent 3987311fd9
commit e43f860912
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