Openshift上的自定义node.js版本
我在打开班次时无法在node0.10
盒式磁带上运行自定义节点版本,您可以找到
I am having trouble running custom node version on node0.10
cartridge on open shift which you can find here.
我可以很好地安装新的节点版本,但是开放式换班继续使用旧的节点10.25
.
I get to install the new node version just great, however open shift keeps using the old node 10.25
.
部署日志:
remote: Activating deployment
remote: - Checking to see if Node.js version 0.10.33 is installed ...
remote: - Node.js version 0.10.33 is already installed
remote:
remote: - pre_start_nodejs: Adding Node.js version 0.10.33 binaries to path
remote: -this is the path: /var/lib/openshift/54b6ea6e4382ece151000039/app-root/data/node-v0.10.33-linux-x64/bin:/var/lib/openshift/54b6ea6e4382ece151000039/app-root/runtime/repo/node_modules/.bin:/var/lib/openshift/54b6ea6e4382ece151000039//.node_modules/.bin:/opt/rh/nodejs010/root/usr/bin:/bin:/usr/bin:/usr/sbin
remote: - PATH set to include custom node version (0.10.33) from
remote: /var/lib/openshift/54b6ea6e4382ece151000039/app-root/data/node-v0.10.33-linux-x64/bin
remote: PATH = /var/lib/openshift/54b6ea6e4382ece151000039/app-root/data/node-v0.10.33-linux-x64/bin:/var/lib/openshift/54b6ea6e4382ece151000039/app-root/runtime/repo/node_modules/.bin:/var/lib/openshift/54b6ea6e4382ece151000039//.node_modules/.bin:/opt/rh/nodejs010/root/usr/bin:/bin:/usr/bin:/usr/sbin
remote: Starting NodeJS cartridge
一切看起来都很棒而且很棒,直到我运行的应用程序显示:10.25 ...
Everything looks great and awesome, until I run the app which says: 10.25...
rhc尾巴:
v0.10.25
/opt/rh/nodejs010/root/usr/bin:/opt/rh/v8314/root/usr/bin:/var/lib/openshift/54b6feb9e0b8cd56c00000e1/app-root/data/node-v0.10.33-linux-x64/bin:/var/lib/openshift/54b6feb9e0b8cd56c00000e1/app-root/runtime/repo/node_modules/.bin:/var/lib/openshift/54b6feb9e0b8cd56c00000e1//.node_modules/.bin:/opt/rh/nodejs010/root/usr/bin:/bin:/usr/bin:/usr/sbin
undefined
即使我rhc ssh
进入我的应用程序并尝试node -v
,我仍然得到10.33 ...
Even when i rhc ssh
to my app and try node -v
i get 10.33...
在启动时,PATH环境被覆盖并导致节点使用旧的垃圾箱...
on start time the PATH env gets overwritten and causes node to use the old bins...
PS:我正在尝试部署Meteor应用(1.0.2.1)
PS: I am trying to deploy a Meteor app (1.0.2.1)
没关系,想通了:-)
如果要使用自定义节点@openshift,请查看此存储库.
If you want to use custom node @openshift take a look at this repo.
希望我能帮助别人!