Skip to content

Commit

Permalink
[fix] Make it compatible with broadway@0.1.1 (nconf@0.5)
Browse files Browse the repository at this point in the history
  • Loading branch information
mmalecki committed Nov 29, 2011
1 parent 791c123 commit 7cdca07
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/forever/cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@ var argvOptions = {
};

app.use(flatiron.plugins.config, {argv: argvOptions});
app.config.argv().env();

var reserved = ['root', 'pidPath'];

Expand Down Expand Up @@ -169,8 +170,8 @@ function getOptions(file) {
// Now we have to force optimist to reparse command line options because
// we've removed some before.
//
app.config.system.reset();
app.config.system.loadSync();
app.config.stores.argv.reset();
app.config.stores.argv.loadSync();

[
'pidFile', 'logFile', 'errFile', 'watch', 'minUptime', 'appendLog',
Expand Down

0 comments on commit 7cdca07

Please sign in to comment.