Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
checked out www.biwascheme.org.js from branch 'website'
- Loading branch information
Yutaka HARA
committed
Dec 7, 2011
1 parent
734c9be
commit b01a3df
Showing
1 changed file
with
19 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,19 @@ | |||
#!/usr/bin/env node | |||
var express = require('express'), | |||
app = require('express').createServer(), | |||
fs = require('fs'); | |||
|
|||
app.configure(function(){ | |||
app.use(express.static(__dirname + '/web')); | |||
//app.use(express.errorHandler({ dumpExceptions: true, showStack: true })); | |||
}); | |||
|
|||
//app.get('/', function(req, res){ | |||
// res.send('hello world'); | |||
//}); | |||
|
|||
var port = process.env.PORT || 7001; | |||
app.listen(port, function(){ | |||
console.log("Listening on " + port); | |||
}); | |||
|