Skip to content

Commit

Permalink
updated for heroku hosting
Browse files Browse the repository at this point in the history
  • Loading branch information
johnculviner committed Jan 20, 2014
1 parent 4a0637d commit 0e200e3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
1 change: 1 addition & 0 deletions Procfile
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
web: node demo/server.js
6 changes: 4 additions & 2 deletions demo/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,7 @@ var app = express()
app.use("/", express.static(__dirname));
app.use("/src", express.static(__dirname + "/../src"));

app.listen(1337);
console.log("Serving files on locahost:1337 from " + __dirname)
var port = process.env.PORT || 1337;
app.listen(port, function() {
console.log("Serving files on locahost:1337 from " + __dirname)
})

0 comments on commit 0e200e3

Please sign in to comment.