我试着理解这个bash完成函数?( cloudfoundry cli)
我阅读了和上的bash指南,但我能够理解cloudfoundry脚本中的代码是如何工作的:(从/usr/local/etc/bash_completion.d/cf复制)
_cf() {
# All arguments except the first one
args=("${COMP_WORDS[@]:1:$COMP_CWORD}")
# Only split on newlines
local IFS=$
当我试图为memcached服务代理推送yaml文件时,cf push上出现了一个错误:
#cf push
FAILED
Error reading manifest file:
yaml: [] mapping values are not allowed in this context at line 2, column 7
/Users/pivotal/go-agent/pipelines/Mac-OSX-Testing/src/github.com/cloudfoundry/cli/Godeps/_workspace/src/github.com/cloudfoundry-incuba
将spring-music app推送到,创建新的app。
ERROR: Unknown CloudFoundryException: 400 Bad Request
ERROR: Cloud Foundry error code: -1
ERROR: The host is taken: spring-music
org.cloudfoundry.client.lib.CloudFoundryException: 400 Bad Request (The host is taken: spring-music)
at org.cloudfoundry.client.lib.rest.
好的,按照这里概述的步骤设置VCAP实例。我直接从Ubuntu直接在新配置的Ubuntu 10.04云AMI上运行它(所以它是普通的)。在花费了很长时间之后,我得到了一条成功的消息,并立即尝试使用说明中给出的start命令启动实例。当我运行它时,我得到了以下结果:
Targeting deployment "devbox" with cloudfoundry home "/home/vcap/cloudfoundry"
Setting up cloud controller environment
Setting up the uaa environment
U