PM2 ecosystem file calls src/app directly, should fix cluster problem.
This commit is contained in:
@@ -4,8 +4,9 @@ module.exports = {
|
||||
apps: [
|
||||
{
|
||||
name: 'traxxx',
|
||||
script: 'npm',
|
||||
args: 'run server:prod',
|
||||
// script: 'npm',
|
||||
// args: 'run server:prod',
|
||||
script: './src/app.js',
|
||||
exec_mode: 'cluster',
|
||||
instances: 2,
|
||||
restart_delay: 3000,
|
||||
|
||||
Reference in New Issue
Block a user