Change forever.config.root to `path` option if given #360

Merged
merged 1 commit into from Feb 3, 2013
Jump to file
+1 −0
Split
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);