Skip to content

Commit

Permalink
template directory fix
Browse files Browse the repository at this point in the history
  • Loading branch information
rhettl committed Apr 26, 2016
1 parent 5c3ea65 commit 43936c3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion bin/www.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ var extend = require('deep-extend');
var template = require('../lib/template');
var templateLoader = require('../lib/load-templates');
var app = require('../lib')(template);
var path = require('path');

var pkg = require('../package.json');

Expand Down Expand Up @@ -55,7 +56,7 @@ server.get('/', function (req, res, next) {
next();
});

templateLoader('../templates', template, function (err) {
templateLoader(path.normalize(path.join(__dirname, '../templates')), template, function (err) {
error.if(err);

server.listen(process.env.PORT || 15000, function () {
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "to-html",
"version": "0.2.0",
"version": "0.2.1",
"description": "Microservice to convert data and template into html",
"homepage": "https://github.com/uci-soe/to-html",
"author": {
Expand Down Expand Up @@ -59,4 +59,4 @@
"extends": "rhett"
},
"repository": "uci-soe/to-html"
}
}

0 comments on commit 43936c3

Please sign in to comment.