Skip to content

Instantly share code, notes, and snippets.

@cgack
Created September 2, 2011 12:08
Show Gist options
  • Save cgack/1188456 to your computer and use it in GitHub Desktop.
Save cgack/1188456 to your computer and use it in GitHub Desktop.
var PORT = process.env.PORT;
var http = require('http');
var server = http.createServer(function (req, res) {
res.writeHead(200, {"Content-Type" : "text/plain"});
res.end("hello world");
});
server.listen(PORT);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment