Skip to content

Commit

Permalink
path fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
jkelin committed Feb 7, 2016
1 parent e37450d commit 627be7c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions work.js
Expand Up @@ -20,7 +20,7 @@ var compression = require('compression');
var emitter = new (require('events'));
//var mongooseCachebox = require("mongoose-cachebox");

var countryNames = require("./countrynames.json");
var countryNames = require(__dirname + "/countrynames.json");

var tribes_news = [];

Expand Down Expand Up @@ -412,7 +412,7 @@ var helpers = {
},
showMoment: function(context) { return moment(context).fromNow(); },
translateStatName: function(context) {
var table = require("./statnames.json");
var table = require(__dirname +"/statnames.json");
for (var i in table) {
if(context == i) return table[i];
};
Expand All @@ -426,6 +426,7 @@ var helpers = {
}
};

app.set('views', __dirname + '/views');
app.engine('handlebars', exphbs({defaultLayout: 'main'}));
app.set('view engine', 'handlebars');

Expand Down

0 comments on commit 627be7c

Please sign in to comment.