How to update NodeJS for my existing application in openshift?

I have an application running on OpenShift using NodeJS 0.10, but now I want to update it to the 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 the NODEJS_VERSION token in the .openshift folder .

I stopped the application, started again, but I can not start NodeJS 0.12. I tried to remove the NodeJS cartridge, but I get the message "nodejs-0.10" could not be deleted. I also accepted the accepted answer. OpenShift did not work with certain Nodejs (Koa) dependencies , but when I get to the page with the opening page, it seems that I can only deploy a new application, but I just need to update the existing application.

Is there a way to upgrade an existing version of a nodeJs application in openshift?

+5
source share
1 answer

Just say that OpenShift is upgrading to NodeJS 5.10. I did not find any documentation about this, but I created the application a few days ago, and when choosing a cartridge to use, a new option appears. I see both options:

Node.js 0.10 (first option)

Node.js (last) (last parameter)

Openshift - Cartridge Selection

Openshift - Specs

Maybe it's a good idea to check it out!

0
source

All Articles