ryanj / nodejs-custom-version-openshift

Node.js quickstart application to run the latest or any custom Node.js version on OpenShift
63 stars 23 forks source link

Fix missing package.json due to it might be moved to temp folder. #3

Closed shihshen closed 9 years ago

shihshen commented 9 years ago

Without this fix, .openshift/markers/NODEJS_VERSION is necessary, due to package.json can't be found because it was moved to temp folder before npm install.

thomas-lee commented 9 years ago

It works on my cases, thanks...

100ideas commented 8 years ago

I think this can sometimes occur if the build process fails before the build action_hook can run and move packages.json back.

In this case force redeploy the local repo (which should still have packages.json in the proper place) with rhc deploy master or whatever branch / sha you want. Or rhc ssh and move packages.json back: mv "$tmp_package_json""${OPENSHIFT_REPO_DIR}/package.json".

Might need to npm install if you do the latter.