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.
vmc target http://api.cloudfoundry.com
Let’s login to the Public Cloud by entering the credentials that we provided during the signup process.
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.
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 email@example.com