Quantcast
Viewing all articles
Browse latest Browse all 27

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

Image may be NSFW.
Clik here to view.
Part 1 of this article introduced Cloud Foundry and walked you through the configuration of Micro Cloud Foundry for the offline deployment. In this part, we will reconfigure Micro Cloud Foundry to go online and expose the deployed application on the public internet.

Login to CloudFoundry.com and generate a token to initialize the Micro Cloud Foundry. Enter a unique name and click the create button. This will create a unique domain which will act as the endpoint for vmc. Make a note of the token that is generated. We need this to configure the Micro Cloud Foundry.

Image may be NSFW.
Clik here to view.

Image may be NSFW.
Clik here to view.

Switch to Micro Cloud Foundry and select option 6 to disable the offline mode.

Image may be NSFW.
Clik here to view.

Make sure that the Micro Cloud Foundry is online.

Image may be NSFW.
Clik here to view.

Now, select option 4 to reconfigure the domain. Enter the token generated at Cloudfoundry.com.

Image may be NSFW.
Clik here to view.

Image may be NSFW.
Clik here to view.

Image may be NSFW.
Clik here to view.

After restarting all the services, Micro Cloud Foundry should now be wired to the domain that was created for us at CloudFoundry.com.

Image may be NSFW.
Clik here to view.

We notice that the identify URL and API endpoint are now reflecting the new domain name.

It’s time for us to point vmc to the new URL and login with the user that we created earlier.

vmc target http://api.janakiramm.cloudfoundry.me 
vmc login

Image may be NSFW.
Clik here to view.

Let’s deploy the Ruby application to the new configuration. Let’s call this hello-mcf!

vmc push

Image may be NSFW.
Clik here to view.

t is time for us to open the browser and access the application through the Internet. We type hello-mcf.cloudfoundry.me to access the app.

Image may be NSFW.
Clik here to view.

Notice that the application is now accessible through the public DNS name.

Image may be NSFW.
Clik here to view.

In the next part, we will target cloudfoundry.com to deploy the same application. Stay tuned!

- Janakiram MSV, Chief Editor, CloudStory.in


Viewing all articles
Browse latest Browse all 27

Trending Articles