Skip to content

Commit

Permalink
updated procfile and web server
Browse files Browse the repository at this point in the history
  • Loading branch information
jonniespratley committed Jan 26, 2014
1 parent 721b7cb commit f7cca43
Show file tree
Hide file tree
Showing 5 changed files with 69 additions and 58 deletions.
85 changes: 50 additions & 35 deletions .idea/workspace.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Procfile
Original file line number Diff line number Diff line change
@@ -1 +1 @@
web: node server.js
web: node web.js
21 changes: 0 additions & 21 deletions npm-debug.log

This file was deleted.

3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@
"mongodb": "~1.3.19",
"express": "~3.4.6",
"connect": "~2.11.2",
"request": "https://registry.npmjs.org/request/-/request-2.0.5.tgz"
"request": "https://registry.npmjs.org/request/-/request-2.0.5.tgz",
"logfmt": "~0.18.1"
},
"devDependencies": {
"grunt": "~0.4.2",
Expand Down
16 changes: 16 additions & 0 deletions web.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
// web.js
var express = require("express");
var logfmt = require("logfmt");
var app = express();

app.use(logfmt.requestLogger());
app.use(express.static(__dirname + '/dist'));
app.use('/', express.directory('/dist'));
app.get('/', function(req, res) {

});

var port = process.env.PORT || 5000;
app.listen(port, function() {
console.log("Listening on " + port);
});

0 comments on commit f7cca43

Please sign in to comment.