1. 程式人生 > >cloud foundry安裝Caldecott

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)