Skip to content

Instantly share code, notes, and snippets.

@sowawa
Created February 7, 2012 02:30
Show Gist options
  • Save sowawa/1756736 to your computer and use it in GitHub Desktop.
Save sowawa/1756736 to your computer and use it in GitHub Desktop.
server.js

This is node.js practice in rackhub.

cd
cd nave
./nave.sh use 0.7.2
cd
git clone git://gist.github.com/1756736.git node
cd node
node server.js
var http = require('http');
http.createServer(function (req, res) {
res.writeHead(200, {'Content-Type': 'text/plain'});
res.end('Hello Rackhub.\n');
}).listen(3000, "0.0.0.0");
console.log('server.js start.');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment