Permalink
Browse files

Use `path` option as forever root if given.

Fixes #258
  • Loading branch information...
1 parent 6ee6f9a commit 3feef60ee013af953436ef92614a46729eb6eac5 @filipovskii committed Dec 2, 2012
Showing with 1 addition and 0 deletions.
  1. +1 −0 lib/forever/cli.js
View
@@ -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);

0 comments on commit 3feef60

Please sign in to comment.