traintimesPWA/ecosystem.config.js
Martin Donnelly da5d1384c5 * Twitter now cleans db on restart
* Server now handles websockets and sends tweets to websocket

* Added new ecosystem for pm2 to control server/twitter
2020-08-19 11:25:53 +01:00

15 lines
307 B
JavaScript

module.exports = {
'apps' : [{
'name': 'Traintimes Server',
'script': './server.js',
'watch': ['./server.js', 'live/build']
}, {
'name': 'Twitter Grabber',
'script': './twitter.js',
'watch': './twitter.js',
'watch_delay': 10000,
'cron_restart' : '0 4 * * */3'
}]
};