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
This commit is contained in:
2025-11-30 16:35:32 -06:00
parent f9fabef97e
commit b193785f88

14
ecosystem.config.js Normal file
View File

@@ -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
}]
};