Skip to content

Commit

Permalink
[refactor] Make forever app.js work
Browse files Browse the repository at this point in the history
  • Loading branch information
mmalecki authored and indexzero committed Nov 23, 2011
1 parent 93359eb commit a52ee8a
Showing 1 changed file with 2 additions and 19 deletions.
21 changes: 2 additions & 19 deletions lib/forever/cli.js
Expand Up @@ -204,14 +204,6 @@ app.cmd(/start (.+)/, cli.startDaemon = function (file) {
});
});

// app.cmd(':file', cli.start = function (file) {
// tryStart(file, {}, function () {
// var monitor = forever.start(file, {});
// monitor.on('start', function () {
// forever.startServer(monitor);
// });
// });
// });


//
Expand Down Expand Up @@ -431,14 +423,6 @@ app.cmd('columns set :value', cli.setColumns = function (value) {
forever.config.saveSync();
});

//
// ### function help ()
// Shows help
//
app.cmd('help', cli.help = function () {
util.puts(help.join('\n'));
});

//
// ### function start (file)
// #### @file {string} Location of the script to spawn with forever
Expand All @@ -449,9 +433,8 @@ app.cmd('help', cli.help = function () {
// make executing other commands possible.
//
app.cmd(/(.+)/, cli.start = function (file) {
var options = getOptions(file);
tryStart(file, options, function () {
var monitor = forever.start(file, options);
tryStart(file, {}, function () {
var monitor = forever.start(file, {});
monitor.on('start', function () {
forever.startServer(monitor);
});
Expand Down

0 comments on commit a52ee8a

Please sign in to comment.