From 7f935b4b0e233db671c8c28d103a38e327956434 Mon Sep 17 00:00:00 2001 From: OWK50GA Date: Fri, 26 Jun 2026 09:59:03 +0100 Subject: [PATCH] chore(deployment): add PM2 ecosystem configuration - Add ecosystem.config.js for PM2 process management - Configure insighta-api app to run with Node.js runtime - Set application entry point to dist/index.js - Define working directory for production deployment - Set NODE_ENV to production for ecosystem configuration - Enables automated process management and restart capabilities in production --- ecosystem.config.js | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 ecosystem.config.js diff --git a/ecosystem.config.js b/ecosystem.config.js new file mode 100644 index 0000000..adf3874 --- /dev/null +++ b/ecosystem.config.js @@ -0,0 +1,13 @@ +module.exports = { + apps: [ + { + name: "insighta-api", + script: "node", + args: "dist/index.js", + cwd: "/var/www/insighta/current", + env: { + NODE_ENV: "production", + }, + }, + ], +}; \ No newline at end of file