I am trying to run cloak server on Openshift. I found out, that there is a call in socket.io which does absolutely nothing on Openshift, while on local machine, it works alright.
Problem is right there:
require('http').createServer();
This call should generate server object, but it just do nothing, and I have no idea why.
Do you guys have any idea?
BTW, port selection should be OK, I am using Openshifts environmental variable.
From my understanding, the reason this is not working is because when you require().createServer, you only call it once. That is the that your object is only created once, and not called on subsequent attempts.