Update update scripts and process files
This commit is contained in:
parent
200e8ba89d
commit
6486dd7ca8
6 changed files with 62 additions and 11 deletions
16
update-backend-hotfix.sh
Executable file
16
update-backend-hotfix.sh
Executable file
|
@ -0,0 +1,16 @@
|
|||
#!/bin/bash
|
||||
|
||||
# Load nvm
|
||||
. ~/.nvm/nvm.sh
|
||||
|
||||
# Run hotfix update
|
||||
cd backend
|
||||
nvm use
|
||||
git pull
|
||||
npm run build
|
||||
|
||||
# Restart processes
|
||||
cd ..
|
||||
nvm use
|
||||
pm2 restart process-bot.json
|
||||
pm2 restart process-api.json
|
Loading…
Add table
Add a link
Reference in a new issue