linux - Go binary failed to run in openshift -
i have developed basic go rest webservice in go 1.2. working expected in local linux box. when scp'ed generated binary openshift , try execute, terminates instantaneously without listening port. here application code : https://gist.github.com/anidotnet/9720936
i tried both binary compiled @ openshift server , binary compiled @ local linux box, result same. tried executing using
nohup ./app $
but still terminates. no panic log there well. going wrong here? missing something?
i not go expert, here things check in program:
make sure binding port 8080 serve application make sure binding openshift ip address (not 127.0.0.1, localhost, or 0.0.0.0 defaults)
here openshift go cartridge can try (check out code in template directory) hints on how bind correctly: https://github.com/smarterclayton/openshift-go-cart
the environment variables need can found sshing gear , running following commands:
env | grep ip
env | grep port
these named according type of web cartridge have installed.
Comments
Post a Comment