0

我的本地机器(windows)中有代码,我正在尝试使用 CLI 部署它。我成功登录到 bluemix,但是在输入 cf push 命令时出现以下错误:

没有组织和空间目标,使用'cf target -o ORG -s SPACE'来定位组织和空间。

我不知道我应该如何在这里进行,任何帮助将不胜感激。

4

2 回答 2

2

You'll need to run the command specified, filling in values for ORG and SPACE.

ORG is most likely the same as your email address you logged in with, and SPACE is most likely "dev". So if your email is bob@example.org, the command to run is:

cf target -o bob@example.org -s dev

There's some information on CloudFoundry orgs and spaces here: http://docs.cloudfoundry.org/concepts/roles.html

于 2015-01-02T03:42:30.237 回答
0

Bluemix 支持已经解决了一个类似的问题:

https://developer.ibm.com/answers/questions/166972/no-org-and-space-targeted-use-cf-target-o-org-s-sp.html

如果运行 cf push 时出现问题...您能否提供使用生成的日志

“cf 日志 app_name --recent”

于 2015-01-02T05:58:59.450 回答