Skip to content

Commit

Permalink
Fix server config so app doesn't try to listen twice in production.
Browse files Browse the repository at this point in the history
  • Loading branch information
akavlie committed Nov 12, 2011
1 parent 4e4cff5 commit d9a4cb2
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions server.js
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -5,8 +5,9 @@ var express = require('express'),


app.configure(function() { app.configure(function() {
app.use(express.static(__dirname + '/')); app.use(express.static(__dirname + '/'));
app.use(express.static(__dirname + '/js')); });
app.use(express.static(__dirname + '/images'));
app.configure('development', function() {
app.listen(8337); app.listen(8337);
}); });


Expand Down

0 comments on commit d9a4cb2

Please sign in to comment.