diff --git a/lib/forever/cli.js b/lib/forever/cli.js index e6a284aa..9fc11d21 100644 --- a/lib/forever/cli.js +++ b/lib/forever/cli.js @@ -314,6 +314,9 @@ app.cmd(/start (.+)/, cli.startDaemon = function () { options = getOptions(file); options.forEach(function (o) { + + o.spawnWith.cwd = o.workingDir || o.sourceDir || o.spawnWith.cwd; + forever.log.info('Forever processing file: ' + o.script.grey); tryStart(o.script, o, function () { forever.startDaemon(o.script, o);