From 7d15ef7638777910f47298b7132f1f021031451a Mon Sep 17 00:00:00 2001 From: Rafi Zadanly Date: Tue, 12 Sep 2023 10:22:46 +0700 Subject: Add ecosystem config for pm2 --- ecosystem.config.js | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 ecosystem.config.js (limited to 'ecosystem.config.js') diff --git a/ecosystem.config.js b/ecosystem.config.js new file mode 100644 index 00000000..0429088a --- /dev/null +++ b/ecosystem.config.js @@ -0,0 +1,19 @@ +module.exports = { + apps: [ + { + name: 'next-indoteknik', + script: 'npm', + args: 'start', + instances: 'max', + autorestart: true, + watch: false, + max_memory_restart: '1G', + env: { + NODE_ENV: 'development' + }, + env_production: { + NODE_ENV: 'production' + } + } + ] +} -- cgit v1.2.3