Setting up default view path in Express.js
Try using
app.set('views', path.join(__dirname, 'views'));
Your app.js
is in your app
folder so I think
var viewPath = path.join(__dirname, 'app/views');app.set('views', viewPath);
will look into app/app/views/
instead of app/views/
because of __dirname
__dirname
is the directory in which the currently executing script resides.