Skip to content

Commit

Permalink
Correcting bug with relative paths
Browse files Browse the repository at this point in the history
  • Loading branch information
Félix Delval committed Dec 17, 2013
1 parent 9e20806 commit 37c9603
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/sng.js
Expand Up @@ -8,7 +8,7 @@
std = require('./std');

swig.setDefaults({ autoescape: false});
nginx_conf = swig.compileFile('templates/nginx.conf.tpl');
nginx_conf = swig.compileFile(path.join(__dirname, '../templates/nginx.conf.tpl'));
stdio = require('./stdio');
defaults = {
php_bind: '127.0.0.1:9000',
Expand Down Expand Up @@ -47,7 +47,7 @@
stdio.error('Invalid behavior selected: ' + profile);
return false;
}
load_behavior(profile, 'templates/behaviors/' + profile + '.conf.tpl');
load_behavior(profile, path.join(__dirname, '../templates/behaviors/', profile + '.conf.tpl'));
return true;
};
load_behavior = function(profile, path){
Expand Down

0 comments on commit 37c9603

Please sign in to comment.