var express = require('express');

var app = express();

app.get('/', function(req, res) {
  res.send('Hello world!');
});

var server = app.listen(3000, function() {

  var host = server.address().address;
  var port = server.address().port;

  console.log('Example app listening at http://localhost:%s/', port);
});

@@ -50,16 +50,62 @@
 ess();%0A%0A
+app.set('port', (process.env.PORT %7C%7C 5000));%0A%0A
 app.get(
@@ -191,103 +191,37 @@
 ten(
-3000, function() %7B%0A%0A  var host = server.address().address;%0A  var port = server.address().port;%0A
+app.get('port'), function() %7B
 %0A  c
@@ -236,17 +236,9 @@
 og('
-Example a
+A
 pp l
@@ -272,19 +272,30 @@
 t:%25s/', 
+app.get('
 port
+')
 );%0A%7D);%0A

change app port setup