鉴于cloudfoundry的命令行工具已经升级到v6了。
那么怎么安装,怎么使用呢?
它又与之前的v5又哪些不同呢?
To remove an existing Go installation from your system delete the go
directory. This is usually /usr/local/go
under Linux, Mac
OS X, and FreeBSD or c:\Go
under Windows.
You should also remove the Go bin
directory from your PATH
environment variable. Under Linux and FreeBSD you should edit /etc/profile
or $HOME/.profile
.
If you installed Go with the Mac OS X package then you should remove the /etc/paths.d/go
file.
Windows users should read the section about setting environment variables under Windows.
installation:
(1) git clone https://github.com/cloudfoundry/cli
(2) git checkout v6.0.0
(3) bin/build
(4) out/cf (this is the cli tool v6)
http://blog.cloudfoundry.com/2013/11/09/announcing-cloud-foundry-cf-v6/
[reference]
? tnx git:(master) ? gcf push Using manifest file /Users/faramir/git/tnx/manifest.yml Updating app tx in org XXX / space dev as XXX ... OK Uploading tx... Uploading from: /Users/faramir/git/tx/CollectionsData 36.7M, 4363 files OK Stopping app tx in org XXX / space dev as XXX... OK Starting app tx in org XXX / space dev as XXX... OK -----> Downloaded app package (16M) -----> Downloaded app buildpack cache (4.0K)
0 of 1 instances running, 1 starting 1 of 1 instances running App started Showing health and status for app tx in org XXX / space dev as XXX... OK requested state: started instances: 1/1 usage: 1G x 1 instances urls: tx.XXXX state since cpu memory disk #0 running 2014-02-22 10:07:36 AM 0.0% 36.7M of 1G 79.2M of 1G
--- applications: - name: tx memory: 1024M host: tx domain: xxx instances: 1 path: "./CollectionsData" command: node app.js
原文:http://blog.csdn.net/samurais/article/details/19674061