Skip to content

Commit

Permalink
[fix] Set forever.root and forever.config.get(root) for symmetry.
Browse files Browse the repository at this point in the history
  • Loading branch information
indexzero committed Sep 6, 2014
1 parent 9eeeeb1 commit dfed754
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lib/forever/cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,11 @@ var reserved = ['root', 'pidPath'];
function tryStart(file, options, callback) {
var fullLog, fullScript;

if (options.path) forever.config.set('root', options.path);
if (options.path) {
forever.config.set('root', options.path);
forever.root = options.path;
}

fullLog = forever.logFilePath(options.logFile, options.uid);
fullScript = path.join(options.sourceDir, file);

Expand Down

0 comments on commit dfed754

Please sign in to comment.