Permalink
Browse files

Fix server config so app doesn't try to listen twice in production.

  • Loading branch information...
1 parent 4e4cff5 commit d9a4cb2ecd978d932f54bc0cab051b1893865058 @akavlie committed Nov 12, 2011
Showing with 3 additions and 2 deletions.
  1. +3 −2 server.js
View
@@ -5,8 +5,9 @@ var express = require('express'),
app.configure(function() {
app.use(express.static(__dirname + '/'));
- app.use(express.static(__dirname + '/js'));
- app.use(express.static(__dirname + '/images'));
+});
+
+app.configure('development', function() {
app.listen(8337);
});

0 comments on commit d9a4cb2

Please sign in to comment.