mirror of
https://github.com/Unitech/pm2.git
synced 2026-02-01 16:57:09 +00:00
fix: #3645 throttle startup
This commit is contained in:
parent
55d25ffbe9
commit
d529f675d0
@ -320,7 +320,7 @@ module.exports = function(CLI) {
|
||||
shelljs.exec(command, function(code, stdout, stderr) {
|
||||
if (code === 0) {
|
||||
Common.printOut(chalk.bold('[DONE] '));
|
||||
return next();
|
||||
return setTimeout(function() { next() }, 500);
|
||||
} else {
|
||||
Common.printOut(chalk.red('[ERROR] Exit code : ' + code))
|
||||
return next(new Error(command + ' failed, see error above.'));
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user