Skip to content

Commit

Permalink
Local のnode.js または Heroku でプレビューできるようにした
Browse files Browse the repository at this point in the history
  • Loading branch information
hakobera committed Sep 18, 2011
1 parent 47aa2e0 commit 08eda3e
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
.DS_Store
node_modules/
.idea/

1 change: 1 addition & 0 deletions Procfile
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
web: node app.js
9 changes: 9 additions & 0 deletions app.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
var connect = require('connect');

var port = process.env.PORT || 3000;
connect(
connect.basicAuth('node', 'fest2011'),
connect.static(__dirname + '/2011')
).listen(port);

console.log('Server running port %d', port);
7 changes: 7 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"name": "nodefest"
, "version": "0.0.1"
, "dependencies": {
"connect": "1.7.1"
}
}

0 comments on commit 08eda3e

Please sign in to comment.