Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Screw express, just make an http server

  • Loading branch information...
commit 136419bf581c7837c3c8e3e7fcc3d35190456676 1 parent f48f434
@jswanner authored
Showing with 5 additions and 13 deletions.
  1. +0 −1  package.json
  2. +5 −12 web.js
View
1  package.json
@@ -2,6 +2,5 @@
"name": "el_boto",
"version": "0.0.1",
"dependencies": {
- "express": "2.2.0"
}
}
View
17 web.js
@@ -32,15 +32,8 @@ instance.join(config.roomId, function(error, room) {
// });
// });
-var express = require('express');
-
-var app = express.createServer(express.logger());
-
-app.get('/', function(request, response) {
- response.send('Hello World!');
-});
-
-var port = process.env["PORT"] || 8080;
-app.listen(port, function() {
- console.log("Listening on " + port);
-});
+var http = require('http');
+http.createServer(function (req, res) {
+ res.writeHead(200, {'Content-Type': 'text/plain'});
+ res.end('Hello World\n');
+}).listen(process.env["PORT"] || 5000, null);
Please sign in to comment.
Something went wrong with that request. Please try again.