Created
June 22, 2011 10:01
-
-
Save ruedap/1039793 to your computer and use it in GitHub Desktop.
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
var express = require('express'); | |
var app = express.createServer(); | |
app.get('/', function(req, res) { | |
res.send('HerokuでNode.jsとExpressを使ってHello world!'); | |
}); | |
var port = process.env.PORT || 3000; | |
app.listen(port, function(){ | |
console.log("Listening on " + port); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment