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:
14
ecosystem.config.js
Normal file
14
ecosystem.config.js
Normal 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
|
||||||
|
}]
|
||||||
|
};
|
||||||
Reference in New Issue
Block a user