Skip to content

Commit

Permalink
(pm2-dev) force no interaction in dev mode
Browse files Browse the repository at this point in the history
  • Loading branch information
Unitech committed Sep 15, 2016
1 parent d2f6d95 commit 4df5b37
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/DevCli.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@

'use strict';

process.env.PM2_NO_INTERACTION = 'true';

var commander = require('commander');

var debug = require('debug')('pm2:cli');
Expand All @@ -17,8 +19,6 @@ var fmt = require('./tools/fmt.js');
var exec = require('child_process').exec;
var os = require('os');

//process.env.PM2_SILENT = 'true';

commander.version(pkg.version)
.usage('[cmd] app');

Expand Down
1 change: 1 addition & 0 deletions lib/Interactor/InteractorDaemonizer.js
Original file line number Diff line number Diff line change
Expand Up @@ -472,6 +472,7 @@ InteractorDaemonizer.launchAndInteract = function(conf, opts, cb) {
*/
InteractorDaemonizer.getInteractInfo = function(conf, cb) {
debug('Getting interaction info');
if (process.env.PM2_NO_INTERACTION) return;
InteractorDaemonizer.ping(conf, function(online) {
if (!online) {
return cb(new Error('Interactor is offline'));
Expand Down

0 comments on commit 4df5b37

Please sign in to comment.