Permalink
Browse files

removing process.cwd() from yaml file resolution

When using Upstart the cwd() call resolves to '/' and the yaml file path is incorrect.  

Pending a cleaner approach that preserves the current path convention; pass in the full path to the YAML file in the config_file variable.
  • Loading branch information...
1 parent 30c4417 commit e529dc82aa7dc4d156791dc696508f3f473b7627 @rschooley rschooley committed Oct 24, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/yaml-config.js
View
@@ -22,7 +22,7 @@ var readConfig = function(config_file, env) {
log.debug('Using %s environment.', env);
try {
- var config = require(process.cwd() + '/' + config_file);
+ var config = require(config_file);
var settings = config['default'] || {};
var settings_env = config[env] || {};

0 comments on commit e529dc8

Please sign in to comment.