I have nuxt js application now its running in fork mode.
I have tried using this ecosystem file but not working.
module.exports = {
apps : [{
name : 'MyAppName', // App name that shows in `pm2 ls`
exec_mode : 'cluster', // enables clustering
instances : 'max', // or an integer
port: 1234,
script : './node_modules/nuxt/bin/nuxt-start', // The magic key
}]
};
Is it possible to run pm2 using cluster mode in specific port?