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

OPENSHIFT_NODEJS_VERSION still shows 0.10 but node -v shows 0.11.11

Open fanweixiao opened this issue 12 years ago • 4 comments

I wanna use 0.11.11 version nodejs. after 'git push' step, ssh login and run node -v shows 0.11.11, but http://vifii-onlyvc.rhcloud.com/env shows 0.10

fanweixiao avatar Feb 08 '14 10:02 fanweixiao

:+1: I have the same problem. any updates on this?

pkyeck avatar Feb 14 '14 10:02 pkyeck

@fanweixiao it only works if you start with a node 0.6 cartridge.

or maybe if you remove the version number from the action_hooks

rename pre_start_nodejs-0.6 to pre_start_nodejs etc.

pkyeck avatar Feb 14 '14 14:02 pkyeck

@pkyeck thanks for the detailed info and @fanweixiao thanks for reporting it. Yeah, the workaround would be as Phillip mentioned to start w/ a nodejs-0.6 cartridge as mentioned in the instructions (https://github.com/ramr/nodejs-custom-version-openshift/blob/master/README.md) and then move up to a newer node version. BTW, don't think the pre_0.6 and post_0.6 hooks should matter as they are symlinked to the actuals, suspect it may have something in the way v0.10 is run via scl (software collection). Will take a look.

ramr avatar Feb 16 '14 07:02 ramr

Fixed with commits https://github.com/ramr/nodejs-custom-version-openshift/commit/7140f2cc5ea8fece725c691e75af859541ed7344

ramr avatar Feb 17 '14 01:02 ramr