From 3a831acaee3ce6168fafffea1a4f21d63e11f67d Mon Sep 17 00:00:00 2001 From: SrJuggernaut Date: Thu, 14 Sep 2023 14:39:51 -0600 Subject: [PATCH] fix: interpreter to use pm2 --- ecosystem.config.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/ecosystem.config.js b/ecosystem.config.js index b961183..6aea480 100644 --- a/ecosystem.config.js +++ b/ecosystem.config.js @@ -4,6 +4,7 @@ module.exports = { name: process.env.APP_NAME || 'entgamers-website', script: 'bun', args: 'start', + interpreter: '~/.bun/bin/bun', env: { NODE_ENV: 'production', PORT: process.env.PORT || 3000, @@ -19,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 ecosystem.config.js', + 'post-deploy': 'pm2 startOrRestart --interpreter ~/.bun/bin/bun ecosystem.config.js', env: { APP_NAME: process.env.APP_NAME, PORT: process.env.PORT, @@ -33,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 ecosystem.config.js', + 'post-deploy': 'pm2 startOrRestart --interpreter ~/.bun/bin/bun ecosystem.config.js', env: { APP_NAME: process.env.APP_NAME, PORT: process.env.PORT,