jeudi 1 décembre 2011

Install CloudFoundry VMC (command line client) on Debian Squeeze

We will install ruby, gems than vmc. At the end we will push a nodejs app to the cloud.
$ sudo aptitude install ruby-full
$ ruby -v
ruby 1.8.7 (2010-08-16 patchlevel 302) [x86_64-linux]

$ sudo aptitude install rubygems
$ gem -v
1.3.7

$ sudo gem install vmc
Add this line to the ~/.bash_profile
export PATH=$PATH:/var/lib/gems/1.8/bin/
$ vmc -v
vmc 0.3.13

$ vmc target api.cloudfoundry.com
Succesfully targeted to [http://api.cloudfoundry.com]

$ vmc login
Email: your.email@gmail.com
Password: ********
Successfully logged into [http://api.cloudfoundry.com]
Now, follow steps described here.

cd to the directory where you have your cloudfoundry app and run:
vmc push any_app_name_here
Resource:
http://blog.cloudfoundry.com/post/4737632136/what-happens-when-you-vmc-push-an-application-to-cloud