Skip to content

Commit

Permalink
Initial node app
Browse files Browse the repository at this point in the history
  • Loading branch information
scastillo committed Jul 25, 2012
1 parent cade42e commit b4df326
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 0 deletions.
1 change: 1 addition & 0 deletions Procfile
@@ -0,0 +1 @@
web: node web.js
11 changes: 11 additions & 0 deletions package.json
@@ -0,0 +1,11 @@
{
"name": "node-example",
"version": "0.0.1",
"dependencies": {
"express": "2.5.x"
},
"engines": {
"node": "0.8.x",
"npm": "1.1.x"
}
}
12 changes: 12 additions & 0 deletions web.js
@@ -0,0 +1,12 @@
var express = require('express');

var app = express.createServer(express.logger());

app.get('/', function(request, response) {
response.send('<h1>/dev/med/</h1><i>Powered by CoffeeGrid</i>');
});

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

0 comments on commit b4df326

Please sign in to comment.