nodejs-custom-version-openshift icon indicating copy to clipboard operation
nodejs-custom-version-openshift copied to clipboard

Wrong environment variable for IP Address

Open jwulf opened this issue 13 years ago • 2 comments

This line: : https://github.com/ramr/nodejs-custom-version-openshift/blob/master/server.js#L25

Needs to look like this line:

https://github.com/openshift/nodejs-example/blob/master/server.js#L6

jwulf avatar Jun 06 '13 02:06 jwulf

Well, originally this was a DIY app template and so it used the process.env.OPENSHIFT_INTERNAL_{IP,PORT} variables.
Those should still work even if you create a nodejs-0.6 app.

Am curious though, is it not working - causing you problems? OpenShift just changed their cartridge infrastructure, so if its not working it would well be a regression.

ramr avatar Jun 07 '13 21:06 ramr

aah, ok, now I see the problem -- looks like the v2 carts broke this. Fixed with https://github.com/ramr/nodejs-custom-version-openshift/commit/c201d598d06c5059a09ac6b8aab9b9e5e55dfb0f

Thanks for reporting it.

ramr avatar Jun 07 '13 22:06 ramr