cloud foundry安装Caldecott

0.安装rubyinstaller-1.9.3
下载地址:http://rubyinstaller.org/downloads

1.安装RubyGems
gem update --system

2.安装vmc
gem install vmc

3.安装DevKit
下载地址:http://rubyinstaller.org/downloads
参考:https://github.com/oneclick/rubyinstaller/wiki/development-kit
ruby dk.rb init
ruby dk.rb review
ruby dk.rb install
检查是否安装成功
gem install rdiscount --platform=ruby

4.安装Caldecott依赖项
gem install em-http-request(包含eventmachine,若只安装这个就能安装Caldecott,下面附录的不要继续)

安装Caldecott
gem install caldecott

5.参考
http://docs.cloudfoundry.com/tools/vmc/caldecott.html
http://rubyer.me/blog/134/

6.进入数据库service的命令(请安装本地mysql)
vmc target api.cloudfoundry.com
vmc login
vmc services
vmc tunnel 服务名称


附录:
如果不能安装Caldecott,请检查下列依赖项
addressable (2.2.6)
async_sinatra (0.5.0)
bigdecimal (1.1.0)
caldecott (0.0.3)
em-http-request (0.3.0)
em-websocket (0.3.1)
escape_utils (0.2.4)
eventmachine (1.0.0.beta.4.1 x86-mingw32)
interact (0.3, 0.2)
io-console (0.3)
json (1.6.1, 1.5.4)
json_pure (1.5.4)
mime-types (1.17.2)
minitest (2.5.1)
rack (1.3.5)
rack-protection (1.1.4)
rake (0.9.2.2)
rdiscount (1.6.8)
rdoc (3.9.4)
rest-client (1.6.7)
rubyzip2 (2.0.1)
sinatra (1.3.1)
spruz (0.2.13)
terminal-table (1.4.4)
tilt (1.3.3)
uuidtools (2.1.2)
vmc (0.3.15.beta.1, 0.3.13)

你可能感兴趣的:(cloud foundry)