简体   繁体   中英

How to upgrade NodeJS for my existing application on openshift?

I have an application running on OpenShift using NodeJS 0.10 but now I want to upgrade it to latest 0.12. I added to package.json :

  "engines": {
    "node": ">= 0.12.0",
    "npm": ">= 1.0.0"
  },

I also followed https://blog.openshift.com/any-version-of-nodejs-you-want-in-the-cloud-openshift-does-it-paas-style/ and got NODEJS_VERSION marker in .openshift folder.

I stopped app, started again but cant get it to run NodeJS 0.12. I tried to remove NodeJS cartridge but I get 'nodejs-0.10' cannot be removed message. I also follwed accepted answer OpenShift not working with certain Nodejs dependencies (Koa) but when I get to openshift page it seems that I can only deploy new application but I just need to upgrade existing app.

Is there any way to upgrade existing app nodeJs version on openshift?

Just to say that OpenShift is updating to NodeJS 5.10. I didn't find documentation about that, but I have created an application few days ago and a new option is showing up when selecting the cartridge to use. I can see both options:

Node.js 0.10 (first option)

Node.js (Latest) (last option)

Openshift  - 选择墨盒

Openshift  - 规格

Maybe it's a good idea to test it!

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM