Merge pull request #7 from nevir/patch-1
Render views no mater what the cwd is
This commit is contained in:
commit
1c1464a9cc
@ -9,6 +9,8 @@ module.exports.run = function(worker) {
|
||||
httpServer.on('request', app);
|
||||
|
||||
app.set('view engine', 'ejs');
|
||||
app.set('views', path.resolve(__dirname, '..', 'views'));
|
||||
|
||||
app.get('/', function(req, res) {
|
||||
res.render('index', { port: worker.options.port });
|
||||
});
|
||||
|
Loading…
x
Reference in New Issue
Block a user