diff options
| author | Rafi Zadanly <zadanlyr@gmail.com> | 2023-09-12 10:22:46 +0700 |
|---|---|---|
| committer | Rafi Zadanly <zadanlyr@gmail.com> | 2023-09-12 10:22:46 +0700 |
| commit | 7d15ef7638777910f47298b7132f1f021031451a (patch) | |
| tree | e59ba8495eed3784ae98215df685c3abdaee00e5 | |
| parent | 30ac5c7fd781285393c8ac7d810ea1217a7a66ad (diff) | |
Add ecosystem config for pm2
| -rw-r--r-- | ecosystem.config.js | 19 |
1 files changed, 19 insertions, 0 deletions
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' + } + } + ] +} |
