From 710e95695f4352f94f8e618d4dea9bd3fec8b43c Mon Sep 17 00:00:00 2001 From: CodeTheDev Date: Mon, 8 Aug 2022 17:45:38 -0400 Subject: [PATCH] chore: prepare for docker support --- process-api.json | 12 ------------ process-bot.json | 12 ------------ update-backend-hotfix.sh | 12 ------------ update-backend.sh | 19 ------------------- update-dashboard.sh | 10 ---------- 5 files changed, 65 deletions(-) delete mode 100644 process-api.json delete mode 100644 process-bot.json delete mode 100755 update-backend-hotfix.sh delete mode 100755 update-backend.sh delete mode 100755 update-dashboard.sh diff --git a/process-api.json b/process-api.json deleted file mode 100644 index 3c5a31c5..00000000 --- a/process-api.json +++ /dev/null @@ -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 - } - ] -} diff --git a/process-bot.json b/process-bot.json deleted file mode 100644 index 999d56ff..00000000 --- a/process-bot.json +++ /dev/null @@ -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 - } - ] -} diff --git a/update-backend-hotfix.sh b/update-backend-hotfix.sh deleted file mode 100755 index b377a396..00000000 --- a/update-backend-hotfix.sh +++ /dev/null @@ -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 diff --git a/update-backend.sh b/update-backend.sh deleted file mode 100755 index d59d8205..00000000 --- a/update-backend.sh +++ /dev/null @@ -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 diff --git a/update-dashboard.sh b/update-dashboard.sh deleted file mode 100755 index 79fe93ee..00000000 --- a/update-dashboard.sh +++ /dev/null @@ -1,10 +0,0 @@ -#!/bin/bash - -# Update dashboard -cd dashboard -git pull -npm ci -npm run build - -# Return -cd ..