Skip to content

Commit

Permalink
Pass cwd to spawn
Browse files Browse the repository at this point in the history
  • Loading branch information
kpdecker committed Feb 27, 2011
1 parent b29a258 commit 8e323ca
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions bin/forever
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,11 @@ if (!options.sourceDir) {
options.sourceDir = file && file[0] !== '/' ? process.cwd() : '/';
}

// Pass the source dir to spawn
options.spawnWith = {
cwd: options.sourceDir
};

//
// Configure winston for forever based on the CLI options
//
Expand Down

0 comments on commit 8e323ca

Please sign in to comment.