I tried to deploy the Node.js application in openshift, as in this link here
I understand this code
var http = require('http'); var server = http.createServer(function(req, res) { res.writeHead(200); res.end('Hello Http'); }); server.listen(3000);
and no problems with local launch
$ node server.js // saved as server.js
However, how does it work when I commit this application in openshift? This is a very simple code. I have downloaded code, which is a chat application, and the client server needs to configure listening on some port (I used port number 3000 in my local host).
It works with port number 3000 in localhost, but how can I get it to work in Openshift?
source share