Skip to content

Commit

Permalink
adding cloud9ide port so sever can run there
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisjaure committed Sep 1, 2011
1 parent 3d8aa45 commit afd8bb7
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions server.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@ var connect = require('connect'),
server = connect.createServer(),
io,
decks = {},
util = {};

util.url = require('url');
util = {
url: require('url')
};

// set up server
server.use(connect.static(__dirname + '/public'));
server.listen(80);
server.listen(process.env.C9_PORT || 80);

// set up the socket
io = socketio.listen(server);
Expand Down Expand Up @@ -69,5 +69,4 @@ function defaultDeckState() {
viewers: [],
has_master: false
};
}

}

0 comments on commit afd8bb7

Please sign in to comment.