Permalink
Browse files

heroku

  • Loading branch information...
jed committed Nov 17, 2011
1 parent fb6220e commit 5c47eed729be5a644986b02931512af6b27075b3
Showing with 5 additions and 2 deletions.
  1. +1 −0 Procfile
  2. +4 −2 server.js
View
@@ -0,0 +1 @@
+web: node server.js
View
@@ -1,6 +1,8 @@
fs = require("fs")
http = require("http")
+port = process.env.PORT || 8080
+
server = http.createServer(function(req, res) {
fs.readFile("./lib/html/uglycrushed/index.html", function(err, html) {
res.writeHead(200, {
@@ -12,6 +14,6 @@ server = http.createServer(function(req, res) {
})
})
-server.listen(8080, function() {
- console.log("kibi listening on 8080")
+server.listen(port, function() {
+ console.log("kibi listening on %s", port)
})

0 comments on commit 5c47eed

Please sign in to comment.