Deploying to the Cloud Foundry Environment

Objectives
After completing this lesson, you will be able to:

After completing this lesson, you will be able to:

  • Deploy the application to the Cloud Foundry environment

Deploy the Application to the Cloud Foundry Environment

Business Scenario

In this exercise, you will deploy the application to the Cloud Foundry environment.

In this exercise, you will perform the following tasks:

  • Deploy the Application to Cloud Foundry.
  • Assign Role Collections.
Note

Please note that some of the services that this learning journey links to, can incur costs.

If you are concerned about charges, you can opt to skip the corresponding exercises and watch the simulation instead.

Exercise Options

You can perform this exercise in two ways:

  1. Live Environment – by using the instructions provided below, you can perform the steps in your SAP BTP account.
  2. Platform Simulation – follow the step-by-step instructions within the simulation.
Note
We strongly recommend to perform the steps in the live environment first.

The following simulation reproduces the full exercise execution:

Note

In case you have set up a SAP HANA Cloud Database instance based on the free plan, please check whether the instance is running. You can do this by opening SAP HANA Cloud Central and checking the database status. The free plan service is stopped automatically after 2 hours of inactivity. Deployment will fail is the database is not running.

Task 1: Deploy the Application to Cloud Foundry

Steps

  1. Deploy the application to Cloud Foundry.

    1. Open SAP Business Application Studio.

    2. Find the Deploy button in the top right of your screen.

    3. In case you are not logged in to Cloud Foundry, a notification will open at the lower right side of the screen. Choose the Log In button.

    4. Provide the API endpoint to your account.

    5. Select authentication method SSO Passcode.

    6. Choose the link open a new browser page to generate your SSO passcode.

    7. Sign in with the appropriate identity provider, and copy the Temporary Authentication Code.

    8. Enter the Temporary Authentication Code as SSO passcode.

    9. Choose Sign in.

    10. Select the organization and the space.

    11. Choose Apply.

    12. Your application will be deployed.

      This can take a few minutes.

Task 2: Assign the Role Collection

Before you can use the application, you need to assign yourself to the roles you have created in the section before. This needs to be done so you are able to edit and view the data from the application.

Steps

  1. Assign the role collection.

    1. Go back to the SAP BTP Cockpit. (For more information see: SAP BTP Cockpit).

    2. Navigate to SecurityUsers.

    3. Select your username, and choose the three dots.

    4. In the dropdown, choose Assign Role Collections.

    5. In the pop-up, find RiskManager-dev and RiskViewer-dev, and select the check mark to assign roles.

    6. Choose Assign Role Collection.

Task 3: Open the deployed App

Steps

  1. You can now open the app you just deployed.

    1. Go back to the SAP BTP Cockpit. (For more information see: SAP BTP Cockpit).

    2. Navigate to HTML5 Applications.

    3. Select the RiskManagementLaunchpad.

Reference Links: Deploying an Application

You find more information about the deployment of an application to cloud foundry here: Deploying Your Applications

Log in to track your progress & complete quizzes