Skip to content

Commit

Permalink
changed web.js to app.js
Browse files Browse the repository at this point in the history
  • Loading branch information
robdodson committed Jun 5, 2012
1 parent b3035db commit a9d774f
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
1 change: 1 addition & 0 deletions Procfile
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
web: node app.js
10 changes: 8 additions & 2 deletions app.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
var express = require('express'),
app = express.createServer(),
app = express.createServer(express.logger()),
io = require('socket.io').listen(app),
routes = require('./routes');

Expand All @@ -22,9 +22,15 @@ app.configure('production', function() {
app.use(express.errorHandler());
});

io.configure(function () {
io.set("transports", ["xhr-polling"]);
io.set("polling duration", 10);
});

// Routes

app.listen(3000, function() {
var port = process.env.PORT || 5000;
app.listen(port, function() {
console.log("Express server listening on port %d in %s mode", app.address().port, app.settings.env);
});

Expand Down

0 comments on commit a9d774f

Please sign in to comment.