2014-09-19 57 views
0

我需要使用節點0.10.32作爲我想在OpenShift上託管的應用程序。我嘗試使用this腳本,但它不起作用。做一個混帳推時,我的控制檯輸出看起來是這樣的:OpenShift:使用自定義節點版本

remote: Building NodeJS cartridge 
remote: npm info it worked if it ends with ok 
remote: npm info using [email protected] 
remote: npm info using [email protected] 
remote: npm info preinstall [email protected] 
remote: npm info build /var/lib/openshift/541b38b35973cae7d900030e/app-root/runtime/repo 
remote: npm info linkStuff [email protected] 
remote: npm info install [email protected] 
remote: npm info postinstall [email protected] 
remote: npm info prepublish [email protected] 
remote: npm info ok 
remote: Preparing build for deployment 
remote: Deployment id is 5b53fccc 
remote: Activating deployment 
remote: Starting MongoDB cartridge 
remote: 
remote: - pre_start_nodejs: Adding Node.js version 0.10.29 binaries to path 
remote: - PATH set to include custom node version (0.10.29) from 
remote: /var/lib/openshift/541b38b35973cae7d900030e/app-root/data//node-v0.10.29-linux-x64/bin 
remote: PATH = /var/lib/openshift/541b38b35973cae7d900030e/app-root/data//node-v0.10.29-linux-x64/bin:/var/lib/openshift/541b38b35973cae7d900030e/app-root/runtime/repo/node_modules/.bin:/var/lib/openshift/541b38b35973cae7d900030e//.node_modules/.bin:/opt/rh/nodejs010/root/usr/bin:/opt/rh/mongodb24/root/usr/bin:/bin:/usr/bin:/usr/sbin 
remote: Starting NodeJS cartridge 

誰能找出問題或有另一個解決方案安裝點10.32?

非常感謝您

託尼

+0

什麼是 「不工作」 是什麼意思? – Chris 2014-09-19 14:42:23

+0

它仍然使用10.25 – tomet 2014-09-19 14:51:32

回答

0

那你有沒有上傳git的回購nodejs-custom-version-openshift,然後編輯下面的文件嗎?

.openshift/markers/NODEJS_VERSION與內容:

0.10.32 

然後git push