Skip to Content

Deploy an App to SAP Cloud Platform Cloud Foundry Environment

test
0 %
Deploy an App to SAP Cloud Platform Cloud Foundry Environment
Details
// Explore More Tutorials

Deploy an App to SAP Cloud Platform Cloud Foundry Environment

09/14/2018

Use SAP Cloud Platform cockpit to deploy an app to the Cloud Foundry environment, then explore what was deployed and created.

You will learn

  • How to deploy an app to the SAP Cloud Platform Cloud Foundry environment using the cockpit
  • What is created when an app is deployed

This tutorial assumes you’ve completed the Download and Prepare App for Cloud Foundry Deployment tutorial, where you should have a folder containing a sample Node.js app with a deployment descriptor file. You’re going to package the app and deploy it directly from your machine using a feature in the SAP Cloud Platform cockpit itself.


Step 1: Package the app up

To deploy your sample application on SAP Cloud Platform, create a zip file that contains the necessary files.

  1. Open the folder cf-sample-app-nodejs-master which contains your sample app.
  2. Select the entire contents of this folder – all folders & files – and add them to a new hello-nodejs.zip file.
Create zip

Be sure not to include the containing folder in the zip file – you must explicitly select only the contents of the cf-sample-app-nodejs-master folder and not that folder itself.

Log on to answer question
Step 2: Go to your dev space on SAP Cloud Platform

In the SAP Cloud Platform cockpit, go to the Cloud Foundry dev space of your trial account.

Make sure that the Applications tab is selected in the navigation menu.

Screenshot of applications page
Log on to answer question
Step 3: Deploy the sample application
  1. Choose Deploy Application. Deploy button
  2. Choose Browse to select the hello-nodejs.zip file you created earlier.
  3. Enable Use Manifest.
  4. Choose Browse to select the manifest.yml file in your hello-nodejs folder. Deployment dialog
  5. Choose Deploy.

The application is deployed to SAP Cloud Platform and starts automatically. It appears in the list of applications. The requested state is initially red, but turns green if the application starts without problem.

Result of started application
What does the manifest.yml do for my deployment?
×
Step 4: Explore the deployed app
  1. Choose the application from the list of applications by clicking on its name.
    The application overview opens.
  2. In the Application Routes section, choose the URL to open the application you’ve just deployed. Application Routes section

A new tab opens that displays the app information.

CF application information

At this stage, you have your sample app deployed and running in Cloud Foundry on SAP Cloud Platform. Well done!

Log on to answer question

Next Steps

Back to top