From f5a9a88f8488bb3e7aa3d070016f7e34c56e0764 Mon Sep 17 00:00:00 2001 From: SrJuggernaut Date: Thu, 14 Sep 2023 14:52:25 -0600 Subject: [PATCH] fix: pm2 script --- ecosystem.config.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/ecosystem.config.js b/ecosystem.config.js index 9be641c..d5b47c7 100644 --- a/ecosystem.config.js +++ b/ecosystem.config.js @@ -2,8 +2,8 @@ module.exports = { apps: [ { name: process.env.APP_NAME || 'entgamers-website', - script: '~/.bun/bin/bun', - args: 'start', + script: 'bun', + args: 'run start', interpreter: '~/.bun/bin/bun', env: { NODE_ENV: 'production', @@ -20,7 +20,7 @@ module.exports = { ref: 'origin/production', repo: 'https://github.com/SrJuggernaut/entgamers_pro', path: process.env.DEPLOY_PATH, - 'post-deploy': 'pm2 startOrRestart --interpreter ~/.bun/bin/bun ecosystem.config.js', + 'post-deploy': 'pm2 startOrRestart ecosystem.config.js', env: { APP_NAME: process.env.APP_NAME, PORT: process.env.PORT, @@ -34,7 +34,7 @@ module.exports = { ref: 'origin/preview', repo: 'https://github.com/SrJuggernaut/entgamers_pro', path: process.env.DEPLOY_PATH, - 'post-deploy': 'pm2 startOrRestart --interpreter ~/.bun/bin/bun ecosystem.config.js', + 'post-deploy': 'pm2 startOrRestart ecosystem.config.js', env: { APP_NAME: process.env.APP_NAME, PORT: process.env.PORT,