3
0
Fork 0
mirror of https://github.com/ZeppelinBot/Zeppelin.git synced 2025-05-25 18:25:03 +00:00
zeppelin/update-backend.sh
2022-08-05 22:49:18 -04:00

19 lines
263 B
Bash
Executable file

#!/bin/bash
# Stop current processes
pm2 delete process-bot.json
pm2 delete process-api.json
# Run update
git pull
npm ci
cd backend
npm ci
npm run build
npm run migrate-prod
# Start processes again
cd ..
pm2 start process-bot.json
pm2 start process-api.json