Skip to content

Commit

Permalink
Added vendor/ dir in geddy app as require-lookup path.
Browse files Browse the repository at this point in the history
  • Loading branch information
mde committed Jun 5, 2010
1 parent 36adfe1 commit a59d808
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions geddy-core/scripts/runserv.js
Expand Up @@ -37,7 +37,7 @@ process.addListener('uncaughtException', function (err) {
else {
var msg = '';
msg += 'Error starting up application.\n';
msg += err.stack.toString();
msg += err.stack ? err.stack.toString() : '';
sys.puts(msg);
// FIXME: This is a hack -- figure out a better way to
// tell the parent to shut down
Expand All @@ -54,8 +54,9 @@ Init = require('geddy-core/lib/init').Init;
args = process.argv.slice(2);
opts = parseopts.parse(args);

// Add the local lib/ dir in the app as a require-lookup path
// Add the local lib/ and vendor/ dirs in the app as a require-lookup path
require.paths.unshift(opts.geddyRoot + '/lib/');
require.paths.unshift(opts.geddyRoot + '/vendor/');

var runServ = function () {
var hostname;
Expand Down

0 comments on commit a59d808

Please sign in to comment.