Permalink
Browse files

simplified config.

  • Loading branch information...
dshaw committed Jun 10, 2012
1 parent 7891bdc commit 237d3c71184a243c31b7991113ccdc7ad57bf043
Showing with 1 addition and 3 deletions.
  1. +1 −3 server.js
View
@@ -1,9 +1,7 @@
var express = require('express')
-
-var port = process.env.PORT || process.argv[2] || 9000
, app = express.createServer(express.static(__dirname + '/public'))
-app.listen(port)
+app.listen(process.env.PORT || process.argv[2] || 9000)
app.on('listening', function () {
console.log('listening on :', app.address())

0 comments on commit 237d3c7

Please sign in to comment.