From bb2dcdadc4493af6cdef361c1f14a3d3c1772a2c Mon Sep 17 00:00:00 2001 From: Todd Cooper Date: Wed, 13 Nov 2024 19:28:18 +0000 Subject: [PATCH] add file --- ecosystem.config.js | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 ecosystem.config.js diff --git a/ecosystem.config.js b/ecosystem.config.js new file mode 100644 index 0000000..0c9bbc5 --- /dev/null +++ b/ecosystem.config.js @@ -0,0 +1,16 @@ +module.exports = { + apps : [{ + name: "my-app", // A name for your application + script: "app.js", // The script file to launch the app + instances: "max", // This can be set to the number of CPU cores to use, or "max" to use all available + autorestart: true, // Automatically restart app if it crashes + watch: false, // Enable/disable watching file changes for automatic restart + max_memory_restart: '1G', // Optional: Restart app if it reaches a memory limit + env: { + NODE_ENV: "development", + }, + env_production: { + NODE_ENV: "production", + } + }] +};