var express = require('express');
var app = express();

app.get('/', function (req, res) {
  res.sendFile(__dirname + '/bin/index.html');
});

app.use(express.static('bin'));

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

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

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

});
@@ -45,24 +45,70 @@
 express();%0A%0A
+app.set('port', (process.env.PORT %7C%7C 3000));%0A%0A
 app.get('/',
@@ -130,16 +130,16 @@
  res) %7B%0A
-
   res.se
@@ -239,20 +239,31 @@
 .listen(
-3000
+app.get('port')
 , functi
@@ -274,85 +274,8 @@
 ) %7B%0A
-%0A  var host = server.address().address;%0A  var port = server.address().port;%0A%0A
   co
@@ -288,62 +288,58 @@
 log(
-'Exampl
+%22Nod
 e app 
-l
 is
-te
+ run
 ning 
-at http://%25s:%25s', host, 
+on port:%22 + app.get('
 port
+')
 );%0A
-%0A
 %7D);

Update port on app.js