Skip to content

Commit

Permalink
Use path option as forever root if given.
Browse files Browse the repository at this point in the history
Fixes #258
  • Loading branch information
flpvsk committed Dec 2, 2012
1 parent 6ee6f9a commit 3feef60
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/forever/cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,7 @@ var reserved = ['root', 'pidPath'];
function tryStart(file, options, callback) {
var fullLog, fullScript;

if (options.path) forever.config.set('root', options.path);
fullLog = forever.logFilePath(options.logFile, options.uid);
fullScript = path.join(options.sourceDir, file);

Expand Down

0 comments on commit 3feef60

Please sign in to comment.