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 an SAP HANA Cloud Database instance based on the free plan, 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. 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 Explorer.

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

      If you select those, a new menu will open.

    3. Select them.

    4. Select Deploy Project

    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.

    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.

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.

    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