Skip to content

Instantly share code, notes, and snippets.

@ruedap
Created June 22, 2011 10:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ruedap/1039793 to your computer and use it in GitHub Desktop.
Save ruedap/1039793 to your computer and use it in GitHub Desktop.
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