Brands
YSTV
Discover
Events
Newsletter
More

Follow Us

twitterfacebookinstagramyoutube
Yourstory
search

Brands

Resources

Stories

General

In-Depth

Announcement

Reports

News

Funding

Startup Sectors

Women in tech

Sportstech

Agritech

E-Commerce

Education

Lifestyle

Entertainment

Art & Culture

Travel & Leisure

Curtain Raiser

Wine and Food

Videos

ADVERTISEMENT
Advertise with us

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

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

Monday August 06, 2012 , 2 min Read

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