From 633f374c6ad56475c27b4406f744f673d0268e9a Mon Sep 17 00:00:00 2001 From: DeathKaioken Date: Sun, 18 Jan 2026 16:56:13 +0100 Subject: [PATCH] fix: add ecosystem.config.js --- ecosystem.config.js | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 ecosystem.config.js diff --git a/ecosystem.config.js b/ecosystem.config.js new file mode 100644 index 0000000..99fc35e --- /dev/null +++ b/ecosystem.config.js @@ -0,0 +1,23 @@ +const path = require('path') + +// Load existing .env into process.env for PM2/Next start +require('dotenv').config({ path: path.join(__dirname, '.env') }) + +module.exports = { + apps: [ + { + name: 'profit-planet-frontend', + cwd: __dirname, + script: './node_modules/next/dist/bin/next', + args: `start -p ${process.env.PORT || 3000}`, + instances: 1, + exec_mode: 'fork', + autorestart: true, + watch: false, + time: true, + env: { + ...process.env, + }, + }, + ], +}