Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 3 additions & 5 deletions index.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
var http = require('http');

//create a server object:
http.createServer(function (req, res) {
res.write('A Monk in Cloud'); //write a response to the client
res.end(); //end the response
}).listen(80); //the server object listens on port 80
res.write('Hello World');
res.end();
}).listen(process.env.PORT || 5000);