"use strict";

var debug = require('debug')('server');
var express = require('express');

var routes = require('./routes/index');

var app = express();

app.use('/', routes);

app.set('view engine', 'jade');

var server = app.listen(process.env.PORT || 3000, function () {
  var host = server.address().address;
  var port = server.address().port;

  debug('listening at http://%s:%s', host, port);
});

"use strict";

var debug = require('debug')('server');
var express = require('express');
var path = require('path');

var routes = require('./routes/index');

var app = express();

app.use('/', routes);

app.set('view engine', 'jade');
app.set('views', path.join(__dirname, 'views'));

var server = app.listen(process.env.PORT || 3000, function () {
  var host = server.address().address;
  var port = server.address().port;

  debug('listening at http://%s:%s', host, port);
});

Change views directory to a relative path.
Change views directory to a relative path.
