Deploying to the Cloud Foundry Environment

Objective

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 the Cloud Foundry.
  • Assign Role Collections.

Note

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

Note

In case you have set up an SAP HANA Cloud Database instance based on the free plan, or on a trial account, 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 if the database is not running.

Task 1: Deploy the Application to Cloud Foundry

Steps

  1. Log on to your Cloud Foundry account.

    1. In case you are not logged on to Cloud Foundry follow the description how to log on to your Cloud foundry account from Task 4: Create an SAP HANA Database for your application in the exercise Create a New Development Project.

  2. Deploy the application to Cloud Foundry.

    1. Open the Project Overview.

    2. Find the three little dots in the Project Overview, right to your project's name.

      System screenshot
    3. To open a new menu, select the three dots.

    4. Select Deploy Project .

      System screenshot
    5. Check that your application deploys.

      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.

      System screenshot
    5. In the pop-up, find the role collections containing the name of the project you created in the exercise "Create a New Project" and the name of the two roles you created in the exercise "Create User Roles".

      For example: RiskManagement-RiskManager-dev and RiskManagement-RiskViewer-dev.

    6. Choose Assign Role Collection.

      System screenshot

Task 3: Open the Deployed App

Steps

  1. You can now open the deployed app.

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

    2. Navigate to HTML5 Applications.

      System screenshot
    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