From b193785f88348b117c040e035d657c536133186e Mon Sep 17 00:00:00 2001 From: hizumi Date: Sun, 30 Nov 2025 16:35:32 -0600 Subject: [PATCH] Add ecosystem.config.js create PM2 ecosystem file so the api node application can be added to bare metal system launcher for autostart and restart on code deploy --- ecosystem.config.js | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 ecosystem.config.js diff --git a/ecosystem.config.js b/ecosystem.config.js new file mode 100644 index 0000000..68925cc --- /dev/null +++ b/ecosystem.config.js @@ -0,0 +1,14 @@ +module.exports = { + apps : [{ + name: '17th-api', + cwd: 'api', + script: 'built/api/src/index.js', + watch: ['.env', 'built'], + ignore_watch: ['.gitignore', '\.json', 'src', '\.db', 'node_modules'], + watch_options: { + usePolling: true, + interval: 10000 + }, + time: true + }] +};