/**
 * Module dependencies.
 */
var express  = require('express');
var hbs      = require('express-hbs');
var format   = require('util').format;
var routes   = require('./routes');
var config   = require('./configuration');
var newrelic = require('./newrelic.js');
var server   = express();

/**
 * View Configuration.
 */
 var hbsconf = {
    'partialsDir'  : __dirname + '/presentation/views/partials'
};
server.engine('hbs', hbs.express3(hbsconf));
server.set('view engine', 'hbs');
server.set('views', __dirname + '/presentation/views');

/**
 * Express Configuration.
 */
 if (process.env.PROTOTYPE) {
    server.use(express.basicAuth('a', 'b'));
}

if (config.prerender) {
    server.use(require('prerender-node').set('prerenderToken', 'IHICuA1WA7Z7emahdIaY'));
}
newrelic.start();
server.set('port', config.port);
server.disable('x-powered-by');
server.use(express.static(__dirname + '/presentation/public'));

/**
 * Routes Configuration.
 */
routes(server);

/**
 * Start Server.
 */
server.listen(server.get('port'), function() {
    var msg = '';
    msg += '\n- \u001b[31mServeJob - Client - WEB';
    msg += '\u001b[31m at \u001b[0m';
    msg += 'http://localhost:%s\u001b[0m';
    msg = format(msg, server.get('port'));
    console.info(msg);
});

/**
 * Module dependencies.
 */
var express  = require('express');
var hbs      = require('express-hbs');
var format   = require('util').format;
var routes   = require('./routes');
var config   = require('./configuration');
var newrelic = require('./newrelic.js');
var server   = express();

/**
 * View Configuration.
 */
 var hbsconf = {
    'partialsDir'  : __dirname + '/presentation/views/partials'
};
server.engine('hbs', hbs.express3(hbsconf));
server.set('view engine', 'hbs');
server.set('views', __dirname + '/presentation/views');

/**
 * Express Configuration.
 */
 if (process.env.PROTOTYPE) {
    server.use(express.basicAuth('a', 'b'));
}

if (config.prerender) {
    server.use(require('prerender-node').set('prerenderToken', 'IHICuA1WA7Z7emahdIaY'));
}
newrelic.start();
server.set('port', config.port);
server.use(express.static(__dirname + '/presentation/public'));

/**
 * Routes Configuration.
 */
routes(server);

/**
 * Start Server.
 */
server.listen(server.get('port'), function() {
    var msg = '';
    msg += '\n- \u001b[31mServeJob - Client - WEB';
    msg += '\u001b[31m at \u001b[0m';
    msg += 'http://localhost:%s\u001b[0m';
    msg = format(msg, server.get('port'));
    console.info(msg);
});

Remove disable x-powered-by