Permalink
Browse files

path.join for views definition

  • Loading branch information...
1 parent 03d7fd3 commit 2fa20666b009edde7b7b6e1dcc41755ee87e0272 @kirbysayshi committed Dec 5, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 app.js
View
2 app.js
@@ -12,7 +12,7 @@ var app = express();
app.configure(function(){
app.set('port', process.env.PORT || 3000);
- app.set('views', __dirname + '/views');
+ app.set('views', path.join( __dirname, '/views') ); // critical to use path.join on windows
app.set('view engine', 'vash');
app.use(express.favicon());
app.use(express.logger('dev'));

0 comments on commit 2fa2066

Please sign in to comment.