smarterclayton / openshift-go-cart

Go cartridge for OpenShift Origin
Other
75 stars 92 forks source link

Failed to run Go application #7

Closed anidotnet closed 10 years ago

anidotnet commented 10 years ago

I have created a basic go rest webservice here. I tested it in my local linux box on go 1.2. The application works fine. But when I uploaded the same app in openshift and tried to run it after compilation in go 1.1 it fails to run as expected. It just exits from the main method and stops instead of listening to the port specified.

What is wrong with the go cartridge in openshift? Is it broken or am I missing something here?

anidotnet commented 10 years ago

My bad.. I was binding the app to localhost ip. Now after binding it to openshift $HOST variable, it is working..