var express =       require('express')
    , http =        require('http')
    , passport =    require('passport')
    , path =        require('path')
    , User =        require('./models/User.js');

var app = express();

app.set('views', __dirname + '/app');
app.set('view engine', 'jade');
app.use(express.logger('dev'))
app.use(express.cookieParser());
app.use(express.bodyParser());
app.use(express.methodOverride());
app.use(express.static(path.join(__dirname, 'app')));
app.use(express.session(
    {
        secret: "Superdupersecret",
        cookie: { maxAge: 3600000 * 24 * 365 }
    }));
app.use(passport.initialize());
app.use(passport.session());

passport.use(User.localStrategy);
passport.serializeUser(User.serializeUser);
passport.deserializeUser(User.deserializeUser);

require('./routes.js')(app);

http.createServer(app).listen(process.env.port || 8080, function(){
    console.log("Express server listening on port " + app.get('port'));
});
@@ -812,16 +812,59 @@
 (app);%0A%0A
+app.set('port', process.env.PORT %7C%7C 8000);%0A
 http.cre
@@ -889,32 +889,23 @@
 ten(
-process.env.port %7C%7C 8080
+app.get('port')
 , fu

Set port on express app explicitly