﻿var express = require('express'),
    app = express(),
    server = require('http').createServer(app),
    io = require('socket.io').listen(server);

server.listen(80);

app.use(express.logger());
app.use(express.static(__dirname + '/public'));
app.use('/shared', express.static(__dirname + '/shared'));

@@ -144,16 +144,55 @@
 rver);%0A%0A
+var port = process.env%5B'PORT'%5D %7C%7C 80;%0A%0A
 server.l
@@ -197,18 +197,20 @@
 .listen(
-80
+port
 );%0A%0Aapp.

read port from environment for heroku-readiness