Skip to content
Browse files

fix process creation logic

  • Loading branch information...
1 parent 1a144dc commit 0ac2bf40ceda1cf5dc81d7372aeff51c045854b1 @tjanczuk committed Apr 30, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/runtime/arr.js
View
4 src/runtime/arr.js
@@ -95,7 +95,7 @@ function determineConfiguration() {
config.apps = {};
var appsDir = path.resolve(config.root, 'apps');
var rootDirContent;
-
+
try {
rootDirContent = fs.readdirSync(appsDir);
}
@@ -427,7 +427,7 @@ function createProcess(context) {
console.log('Starting application ' + context.routingEntry.app.name + ' with entry point ' + absolutePath);
try {
- context.routingEntry.process = spawn('node.exe', [ absolutePath ], { env: env });
+ context.routingEntry.process = spawn(process.execPath, [ absolutePath ], { env: env });
}
catch (e) {
// empty

0 comments on commit 0ac2bf4

Please sign in to comment.
Something went wrong with that request. Please try again.