I'm new to openshift,django and python and having a hard time trying to have two internal ports available for a python app I'm trying to install on openshift.
I read some previous post about doing this and I used the code below in an action_hook/deploy with no success.
I also attempted to execute the commands in a python shell via SSH. I received no errors, but when I did a netstat (using value returned from os.environ['OPENSHIFT_PYTHON_IP']), I still do not see the port listed.
Host = os.environ['OPENSHIFT_PYTHON_IP']
bPort = 28081
jqPort = 28092
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
s.bind((Host, jqPort))
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
s.bind((Host, bPort))
LIke I said I'm new to both openshift, python and django, and don't know what else to do.