create PM2 ecosystem file so the api node application can be added to bare metal system launcher for autostart and restart on code deploy
15 lines
309 B
JavaScript
15 lines
309 B
JavaScript
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
|
|
}]
|
|
};
|