Skip to content

Commit

Permalink
[fix]
Browse files Browse the repository at this point in the history
  • Loading branch information
alejandro committed Jun 14, 2012
1 parent 8276511 commit f5157bd
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
9 changes: 8 additions & 1 deletion app.js.js
Expand Up @@ -119,10 +119,17 @@ var myPid = daemon.start();
// version of node in /usr/local/n/version
var nodePath = '/usr/local/n/versions/' + version + '/bin/node'
var coffeePath = nodePath + ' /node/coffeelauncher';
var spawingPath = nodePath;

log_line.call('data','Spawing ' + args[0], LOG_STDOUT);

child = spawn((path.extname(args[0]) == '.coffee' ? coffeePath : nodePath ), args, {
if (path.extname(args[0]) === '.coffee') {
spawingPath = coffeePath;
}

log_line.call('data','Spawing path ' + spawingPath, LOG_STDOUT);

child = spawn(spawingPath, args, {
env: env
});

Expand Down
1 change: 1 addition & 0 deletions package.json
Expand Up @@ -5,6 +5,7 @@
"version": "0.0.0",
"private": true,
"homepage": "http://nodester.com",
"node":"0.6.17",
"repository": {
"url": "defaultapp"
},
Expand Down

0 comments on commit f5157bd

Please sign in to comment.