Skip to content
This repository has been archived by the owner on Mar 3, 2023. It is now read-only.

Commit

Permalink
heroku
Browse files Browse the repository at this point in the history
  • Loading branch information
jed committed Nov 17, 2011
1 parent fb6220e commit 5c47eed
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
1 change: 1 addition & 0 deletions Procfile
@@ -0,0 +1 @@
web: node server.js
6 changes: 4 additions & 2 deletions server.js
@@ -1,6 +1,8 @@
fs = require("fs") fs = require("fs")
http = require("http") http = require("http")


port = process.env.PORT || 8080

server = http.createServer(function(req, res) { server = http.createServer(function(req, res) {
fs.readFile("./lib/html/uglycrushed/index.html", function(err, html) { fs.readFile("./lib/html/uglycrushed/index.html", function(err, html) {
res.writeHead(200, { res.writeHead(200, {
Expand All @@ -12,6 +14,6 @@ server = http.createServer(function(req, res) {
}) })
}) })


server.listen(8080, function() { server.listen(port, function() {
console.log("kibi listening on 8080") console.log("kibi listening on %s", port)
}) })

0 comments on commit 5c47eed

Please sign in to comment.