Skip to content

Commit

Permalink
Merge pull request #92 from artlogic/absolute-view-path
Browse files Browse the repository at this point in the history
Use an absolute path for views
  • Loading branch information
yakovkhalinsky committed Oct 5, 2015
2 parents 3abdb37 + 62693bb commit bef7e1c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/drakov.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
var express = require('express');
var path = require('path');
require('colors');

var logger = require('./logger');
Expand Down Expand Up @@ -34,7 +35,7 @@ exports.run = function(argv, cb) {
if (argv.discover && typeof argv.discover === 'string') {
discoverabilityModule = require(argv.discover);
} else {
app.set('views', 'views');
app.set('views', path.join(__dirname, '..', 'views'));
app.set('view engine', 'jade');
discoverabilityModule = require('./middleware/discover');
}
Expand Down

0 comments on commit bef7e1c

Please sign in to comment.