从 CLI 在 Bluemix 上安装 Etherpad 时出错
Error installing Etherpad on Bluemix from CLI
我正在尝试部署 Etherpad 版本 1.5.7 (https://github.com/cloudfoundry/cli/releases) on Bluemix using the Command Line Interface as per the guidelines here - https://www.ng.bluemix.net/docs/starters/install_cli.html
我收到附加错误
我在执行命令时收到此错误 - cf push appname https://github.com/cloundfoundry/node.js-buildpack.git
任何有关如何解决此错误的帮助都会有所帮助。 TIA.
输出中的关键信息是:
It looks like you're deploying on a stack (currently set to *lucid64*) that's not supported by this buildpack.
您可以看到 Bluemix 中支持的堆栈以及它们当前设置为与命令 cf stacks
一起使用的顺序。如果您使用 运行 这个命令,您可能会看到 lucid64
位于列表的顶部。
根据您指定的 buildpack 的 changelog,在 v1.2.0 中添加了对 cflinuxfs2
堆栈的支持,然后在 v1.4.0 中删除了 lucid 二进制文件。由于构建包中不再提供 lucid
支持,因此您需要指定要使用的不同堆栈。这可以通过 -s
命令行选项指定您在 cf stacks
命令中看到的可用值之一来完成。例如
cf push EtherPadOnceMore -b https://github.com/cloudfoundry/nodejs-buildpack -s cflinuxfs2
根据下面的评论,如果使用 http://github.com/ether/etherpad-lite/releases 的存储库部署到 CloudFoundry/Bluemix:
,则将此处的信息添加为编辑以捕获其他步骤
- 上面使用的 buildpack 期望
package.json
在您推送的内容的根目录。复制/src/package.json
到项目根目录,修改内容去掉'dependencies'部分,避免初始模块安装
- 使用-c 命令行选项指定启动命令(模拟安装和启动脚本)。将
-c "npm install src/ && node node_modules/ep_etherpad-lite/node/server.js"
添加到 cf push
命令。
- 从
settings.json
文件中删除 "ip" 和 "port",这样 PORT 环境变量将由 Bluemix 运行time 使用(PORT 是自动为您设置的)
我正在尝试部署 Etherpad 版本 1.5.7 (https://github.com/cloudfoundry/cli/releases) on Bluemix using the Command Line Interface as per the guidelines here - https://www.ng.bluemix.net/docs/starters/install_cli.html
我收到附加错误
我在执行命令时收到此错误 - cf push appname https://github.com/cloundfoundry/node.js-buildpack.git
任何有关如何解决此错误的帮助都会有所帮助。 TIA.
输出中的关键信息是:
It looks like you're deploying on a stack (currently set to *lucid64*) that's not supported by this buildpack.
您可以看到 Bluemix 中支持的堆栈以及它们当前设置为与命令 cf stacks
一起使用的顺序。如果您使用 运行 这个命令,您可能会看到 lucid64
位于列表的顶部。
根据您指定的 buildpack 的 changelog,在 v1.2.0 中添加了对 cflinuxfs2
堆栈的支持,然后在 v1.4.0 中删除了 lucid 二进制文件。由于构建包中不再提供 lucid
支持,因此您需要指定要使用的不同堆栈。这可以通过 -s
命令行选项指定您在 cf stacks
命令中看到的可用值之一来完成。例如
cf push EtherPadOnceMore -b https://github.com/cloudfoundry/nodejs-buildpack -s cflinuxfs2
根据下面的评论,如果使用 http://github.com/ether/etherpad-lite/releases 的存储库部署到 CloudFoundry/Bluemix:
,则将此处的信息添加为编辑以捕获其他步骤- 上面使用的 buildpack 期望
package.json
在您推送的内容的根目录。复制/src/package.json
到项目根目录,修改内容去掉'dependencies'部分,避免初始模块安装 - 使用-c 命令行选项指定启动命令(模拟安装和启动脚本)。将
-c "npm install src/ && node node_modules/ep_etherpad-lite/node/server.js"
添加到cf push
命令。 - 从
settings.json
文件中删除 "ip" 和 "port",这样 PORT 环境变量将由 Bluemix 运行time 使用(PORT 是自动为您设置的)