node.js 应用程序的 IBM Bluemix 部署失败
IBM Bluemix deployment fails for node.js app
部署简单的 node.js 应用程序(在本地运行)时出错:
ERR mv: cannot move ‘/tmp/node-v0.10.40-linux-x64/bin’ to ‘/tmp/staged/app/vendor/node/bin’: Directory not empty
ERR mv: cannot move ‘/tmp/node-v0.10.40-linux-x64/include’ to ‘/tmp/staged/app/vendor/node/include’: Directory not empty
ERR mv: cannot move ‘/tmp/node-v0.10.40-linux-x64/licenses’ to ‘/tmp/staged/app/vendor/node/licenses’: Directory not empty
ERR mv: cannot move ‘/tmp/node-v0.10.40-linux-x64/share’ to ‘/tmp/staged/app/vendor/node/share’: Directory not empty
OUT -----> Build failed
OUT Your build failed!
OUT If you're stuck, please submit a ticket so we can help:
OUT http://ibm.biz/bluemixsupport
OUT Staging failed: Buildpack compilation step failed
ERR encountered error: App staging failed in the buildpack compile phase
默认节点构建包和节点 sdk >cf push -b sdk-for-nodejs_v2_5-20150902-1526
都失败了。
cf
尾日志仅包含相同的 mv 错误。
有什么提示吗?
尝试使用 cf logs appname --recent
,如下面 link 文章中 Node.js 的调试阶段错误中所述:
https://www.ng.bluemix.net/docs/troubleshoot/debugging.html#debug_stgerr
有效的方法是使用最新的 node.js 构建包:
cf push -b https://github.com/cloudfoundry/buildpack-nodejs.git
部署简单的 node.js 应用程序(在本地运行)时出错:
ERR mv: cannot move ‘/tmp/node-v0.10.40-linux-x64/bin’ to ‘/tmp/staged/app/vendor/node/bin’: Directory not empty
ERR mv: cannot move ‘/tmp/node-v0.10.40-linux-x64/include’ to ‘/tmp/staged/app/vendor/node/include’: Directory not empty
ERR mv: cannot move ‘/tmp/node-v0.10.40-linux-x64/licenses’ to ‘/tmp/staged/app/vendor/node/licenses’: Directory not empty
ERR mv: cannot move ‘/tmp/node-v0.10.40-linux-x64/share’ to ‘/tmp/staged/app/vendor/node/share’: Directory not empty
OUT -----> Build failed
OUT Your build failed!
OUT If you're stuck, please submit a ticket so we can help:
OUT http://ibm.biz/bluemixsupport
OUT Staging failed: Buildpack compilation step failed
ERR encountered error: App staging failed in the buildpack compile phase
默认节点构建包和节点 sdk >cf push -b sdk-for-nodejs_v2_5-20150902-1526
都失败了。
cf
尾日志仅包含相同的 mv 错误。
有什么提示吗?
尝试使用 cf logs appname --recent
,如下面 link 文章中 Node.js 的调试阶段错误中所述:
https://www.ng.bluemix.net/docs/troubleshoot/debugging.html#debug_stgerr
有效的方法是使用最新的 node.js 构建包:
cf push -b https://github.com/cloudfoundry/buildpack-nodejs.git