mirror of
https://github.com/zhigang1992/deployd.git
synced 2026-04-30 02:16:03 +08:00
added auto restart on error
This commit is contained in:
3
bin/dpd
3
bin/dpd
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user