Skip to content

Commit

Permalink
Added pm2-dev-refresh support
Browse files Browse the repository at this point in the history
  • Loading branch information
daslicht committed Jul 22, 2013
1 parent 5aa2555 commit c594117
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion bin/pm2
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ var pkg = require('../package.json');
var util = require('util');
var watch = require('watch');
var cronJob = require('cron').CronJob;

var pm2refresh = require('pm2-dev-refresh');

const PREFIX_MSG = '\x1B[32m⌬ PM2 \x1B[39m';
const PREFIX_MSG_ERR = '\x1B[31m⌬ PM2 [ERROR] \x1B[39m';
Expand Down Expand Up @@ -383,6 +383,7 @@ CLI.developmentMode = function(script) {
'ignoreDotFiles' : true
}, function(f, curr, prev) {
console.log(PREFIX_MSG + 'File changed. Reloading.');
pm2refresh.refreshBrowser();
Satan.executeRemote('list', {}, function(err, list) {
if (err) {
console.error('Error retrieving process list: ' + err);
Expand Down

0 comments on commit c594117

Please sign in to comment.