Skip to content

Commit fab4f11

Browse files
committed
Made cloud9IDE port conditional, default to 9000
1 parent 5b04eae commit fab4f11

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/main.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
var http = require('http');
2+
process.env.C9_PORT = process.env.C9_PORT || 9000
23
http.createServer(function (req, res) {
34
res.writeHead(200, {'Content-Type': 'text/plain'});
45
res.end('Chat.js Server ready for interaction\n');
56
}).listen(process.env.C9_PORT, "0.0.0.0");
6-
console.log('Server running at http://127.0.0.1:9000/');
7+
console.log('Server running at http://127.0.0.1:9000/');

0 commit comments

Comments
 (0)