diff options
-rw-r--r-- | ecosystem.config.cjs (renamed from ecosystem.config.js) | 4 | ||||
-rw-r--r-- | package.json | 6 | ||||
-rw-r--r-- | tsconfig.json | 2 |
3 files changed, 6 insertions, 6 deletions
diff --git a/ecosystem.config.js b/ecosystem.config.cjs index cbcfc92..b90eb42 100644 --- a/ecosystem.config.js +++ b/ecosystem.config.cjs @@ -37,7 +37,7 @@ module.exports = { 'ref': 'origin/master', 'repo': 'https://github.com/NotEnoughUpdates/bush-bot.git', 'path': '/code/bush-bot', - 'post-deploy': 'yarn install && yarn build:tsc && pm2 start ecosystem.config.js --only bush-bot' + 'post-deploy': 'yarn install && yarn build:tsc && pm2 start ecosystem.config.cjs --only bush-bot' }, beta: { 'user': 'pi', @@ -45,7 +45,7 @@ module.exports = { 'ref': 'origin/beta', 'repo': 'https://github.com/NotEnoughUpdates/bush-bot.git', 'path': '/code/bush-bot-beta', - 'post-deploy': 'yarn install && yarn build:tsc && pm2 start ecosystem.config.js --only bush-bot-beta' + 'post-deploy': 'yarn install && yarn build:tsc && pm2 start ecosystem.config.cjs --only bush-bot-beta' } } }; diff --git a/package.json b/package.json index 031080a..ba1b852 100644 --- a/package.json +++ b/package.json @@ -36,9 +36,9 @@ "format:check": "yarn prettier . --check", "upgrade": "yarn rimraf yarn.lock && yarn cache clean && yarn install && yarn up || true || yarn dlx @yarnpkg/sdks vscode", "beta": "git push && git checkout beta && git merge master && git push && git checkout master", - "deploy:beta": "wsl /bin/bash -c \"pm2 deploy beta\"", - "deploy:production": "wsl /bin/bash -c \"pm2 deploy production\"", - "deploy:all": "yarn beta && wsl /bin/bash -c \"pm2 deploy production && pm2 deploy beta\"" + "deploy:beta": "wsl /bin/bash -c \"pm2 deploy ecosystem.config.cjs beta\"", + "deploy:production": "wsl /bin/bash -c \"pm2 deploy ecosystem.config.cjs production\"", + "deploy:all": "yarn beta && wsl /bin/bash -c \"pm2 deploy ecosystem.config.cjs production && pm2 deploy ecosystem.config.cjs beta\"" }, "dependencies": { "@sentry/node": "^6.14.1", diff --git a/tsconfig.json b/tsconfig.json index b2e5ecd..482709d 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -29,6 +29,6 @@ "#root/*": ["./*"] } }, - "include": ["src/**/*.ts", "lib/**/*.ts", "ecosystem.config.js"], + "include": ["src/**/*.ts", "lib/**/*.ts", "ecosystem.config.cjs"], "exclude": ["dist", "node_modules"] } |