// Fields
var express = require('express');
var path = require('path');
var fs = require('fs');
var app = express();
var http = require('http');
var config = require("./app/config/config");

require("./app/config/express")(app, config);

app.set('port', 3000);

// Server
http.createServer(app).listen(app.get('port'), function () {
  console.log('Express server listening on port ' + app.get('port'));
}); // createServer

// Exports

exports = module.exports = app;
@@ -265,16 +265,18 @@
  Server%0A
+//
 http.cre
@@ -328,16 +328,18 @@
 on () %7B%0A
+//
   consol
@@ -400,16 +400,18 @@
 ort'));%0A
+//
 %7D); // c
@@ -423,16 +423,195 @@
 Server%0A%0A
+app.set('port', process.env.PORT %7C%7C 3000);%0Avar server = app.listen(app.get('port'), function() %7B%0A  console.log('Express server listening on port ' + server.address().port);%0A%7D);%0A%0A%0A
 // Expor

Fix heroku problem