mirror of
https://github.com/Unitech/pm2.git
synced 2025-12-08 20:35:53 +00:00
recommends
This commit is contained in:
parent
744fa4dae2
commit
1e017a546e
@ -82,7 +82,7 @@ CLI.start = function(script, opts, cb) {
|
||||
var forceForkMode = !!opts.executeCommand;
|
||||
|
||||
if(!forceForkMode && !isNaN(conf.instances) && conf.instances > 1 && /^fork(_mode)?$/i.test(conf.exec_mode)){
|
||||
warn(recommend + 'You chouldn\'t run the process in a \'' + chalk.blue(conf.exec_mode) + '\' mode with ' + chalk.blue(conf.instances) +' instance(s), ' +
|
||||
warn('You chouldn\'t run the process in a \'' + chalk.blue(conf.exec_mode) + '\' mode with ' + chalk.blue(conf.instances) +' instance(s), ' +
|
||||
'web recommend using ' + chalk.blue('cluster | cluster_mode') + ' instead to take advantage of multi-core systems, and we\'ve amended it yet.');
|
||||
conf.exec_mode = 'cluster_mode';
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user