How to Install Ruby and RubyGems
http://docs.cloudfoundry.com/frameworks/ruby/installing-ruby.html#windows
Windows
Download and install Ruby Installer for Windows. The installer already includes RubyGems.
Be sure you use the Ruby-enabled command prompt window when you later install and use vmc. You access this command prompt from the Windows Start menu (All Programs > Ruby
Finally, update RubyGems from the Ruby Command Prompt:
prompt> gem update --system
ruby 1.9.3p194 (2012-04-20) [i386-mingw32]
C:\Users\Thai Hau>gem update --system
Updating rubygems-update
Fetching: rubygems-update-1.8.24.gem (100%)
Successfully installed rubygems-update-1.8.24
Installing RubyGems 1.8.24
RubyGems 1.8.24 installed
== 1.8.24 / 2012-04-27
* 1 bug fix:
* Install the .pem files properly. Fixes #320
* Remove OpenSSL dependency from the http code path
-------------------------------------------------------------
RubyGems installed the following executables:
D:/Ruby193/bin/gem
RubyGems system software updated
Installing vmc: Procedure
http://docs.cloudfoundry.com/tools/vmc/installing-vmc.html#installing-vmc-procedure
On Windows, open a command prompt in which Ruby is enabled and execute the following:
prompt> gem install vmc
Execute the vmc target command to specify the Cloud Foundry target to which you will deploy your applications:
To deploy on the PaaS Cloud Foundry, specify api.cloudfoundry.com
To deploy on your local Micro Cloud Foundry, specify api.
The following command targets the PaaS Cloud Foundry:
prompt$ vmc target api.cloudfoundry.com
To determine your current target, execute the `vmc target` command without any parameters:
prompt$ vmc target
Login using the user credentials you received via email after you registered with Cloud Foudnry. Your username is typically your email address.
prompt$ vmc login
Ensure you have successfully logged in by retrieving information about your account:
prompt$ vmc info
Change your password:
prompt$ vmc passwd
View the full list of VMC commands, along with their parameters and a brief description, by executing the vmc help command:
prompt$ vmc help
You have now successfully installed vmc and run a few basic commands.
No comments:
Post a Comment