added auto restart on error

This commit is contained in:
Ritchie Martori
2012-09-18 15:04:53 -07:00
parent 9d4363fd88
commit 69064088d5
9 changed files with 243 additions and 6 deletions

View File

@@ -5,7 +5,7 @@
*/
var program = require('commander')
, deployd = require('../')
, deployd = require('../').createMonitor
, repl = require('../lib/client/repl')
, shelljs = require('shelljs/global')
, mongod = require('../lib/util/mongod')
@@ -108,6 +108,7 @@ function start(file) {
var onListening = function () {
console.info('listening on port', options.port);
console.log('repl');
var commands = repl(dpd);
if (program.dashboard) {
commands.dashboard();