﻿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'));

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

var port = process.env['PORT'] || 80;

server.listen(port);

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

read port from environment for heroku-readiness