Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

add package.json

  • Loading branch information...
commit cee3f8b430ed33d27badbbdd73dd02ba78452c3d 1 parent 2667247
@fjakobs authored
Showing with 4 additions and 3 deletions.
  1. +4 −3 server.js
View
7 server.js
@@ -15,10 +15,9 @@ var server = http.createServer(function(req, res) {
res.writeHead(404, {"Content-Type": "text/html"});
res.end("Not found");
-
});
-server.listen(process.env.C9_PORT);
+server.listen(process.env.PORT);
var io = require("socket.io").listen(server);
io.set("log level", 2);
@@ -56,4 +55,6 @@ function error(res, err) {
res.writeHead(500, {"Content-Type": "text/plain"});
res.end("Internal server error: " + err);
console.log(err);
-}
+}
+
+console.log(process.env.PORT)

0 comments on commit cee3f8b

Please sign in to comment.
Something went wrong with that request. Please try again.