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

chore: prepare for docker support

This commit is contained in:
CodeTheDev 2022-08-08 17:45:38 -04:00
parent 9d63167ad2
commit 710e95695f
No known key found for this signature in database
GPG key ID: AF9160D3CEA9B223
5 changed files with 0 additions and 65 deletions

View file

@ -1,12 +0,0 @@
{
"apps": [
{
"name": "airship-api",
"cwd": "./backend",
"script": "npm",
"args": "run start-api-prod",
"log_date_format": "YYYY-MM-DD HH:mm:ss.SSS",
"exp_backoff_restart_delay": 2500
}
]
}

View file

@ -1,12 +0,0 @@
{
"apps": [
{
"name": "airship-bot",
"cwd": "./backend",
"script": "npm",
"args": "run start-bot-prod",
"log_date_format": "YYYY-MM-DD HH:mm:ss.SSS",
"exp_backoff_restart_delay": 2500
}
]
}

View file

@ -1,12 +0,0 @@
#!/bin/bash
# Run hotfix update
cd backend
git pull
npm run build
# Restart processes
cd ..
nvm use
pm2 restart process-bot.json
pm2 restart process-api.json

View file

@ -1,19 +0,0 @@
#!/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

View file

@ -1,10 +0,0 @@
#!/bin/bash
# Update dashboard
cd dashboard
git pull
npm ci
npm run build
# Return
cd ..