Tutorial: Getting Started with Cloud Foundry – Part 3/3

6th Aug 2012
  • +0
Share on
close
  • +0
Share on
close
Share on
close
Part 1 of this article introduced Cloud Foundry and walked you through the configuration of Micro Cloud Foundry for the offline deployment. In part 2, we reconfigured Micro Cloud Foundry to go online and expose the deployed application on the public internet. In the final part, we will move the application to the Public Cloud running at CloudFoundry.com.

CloudFoundry.com is the Public Cloud that hosts Cloud Foundry. We can deploy applications to run on this environment just by targeting the endpoint, http://api.cloudfoundry.com. Let’s repeat a few steps to run our simple Ruby application on CloudFoundry.com. Now that we are familiar with the vmc tool, just run the following commands in the same sequence.

[crayon lang="shell"]

vmc target http://api.cloudfoundry.com

[/crayon]


Let’s login to the Public Cloud by entering the credentials that we provided during the signup process.

[crayon lang="shell"]

vmc login

[/crayon]


Finally, we push the application to CloudFoundry.com. Give a unique name to the app as it may be turned into a DNS name for our application.

[crayon lang="shell"]

vmc push

[/crayon]


We can access the application by typing the url http://hello-cf-jani.cloudfoundry.com/.


Note that the subdomain is a part of Cloudfoundry.com which is an indication that our app is running on the Public Cloud.


In this tutorial we have seen how to deploy applications running on Cloud Foundry in 3 different modes – 1) Micro Cloud Foundry in the offline mode, 2) Micro Cloud Foundry in the online mode and, 3) Public Cloud running at CloudFoundry.com.

- Janakiram MSV, Chief Editor, CloudStory.in

How has the coronavirus outbreak disrupted your life? And how are you dealing with it? Write to us or send us a video with subject line 'Coronavirus Disruption' to editorial@yourstory.com

  • +0
Share on
close
  • +0
Share on
close
Share on
close