Business Example
You will deploy your CAP application into the Cloud Foundry environment of the SAP Business Technology Platform.
Exercise Options
You can perform this exercise in two ways:
- Live Environment – using the instructions provided below, you can perform the tasks in the SAP BTP Free Tier account
- Platform Simulation – follow the step-by-step instructions within the simulation
Prerequisites
Steps
Deploy the build application to the SAP BTP.
Deploy the generated MTA-project.
Odds are that you have to log in to your Cloud Foundry org and space first. For this run
This process can take some minutes and finally creates a log output like this:cf login
first and provide the necessary information.Code snippetExpand[...] Application "risk-management" started and available at "[org]-[space]-risk-management.landscape-domain.com" [...]
Assign Role Collections.
In your subaccount in the SAP BTP cockpit tab, navigate to the Security tab. Choose Users and choose your username.
After choosing your user, a new view displays on the right side. Choose the Assign Role Collection button.
From the list, choose RiskManager
-<org-name>-<space-name>
. Choose the Assign Role Collection button.Now you are ready to access the application.
Note
Changes may require some time to take effect. For immediate implementation, log out and log back in.
Inspect the deployed application in the SAP BTP Cockpit.
In this step you will inspect the deployed risk-management application.
Visit the Applications section in your SAP BTP cockpit to see the deployed apps.
Choose the
risk-management
application and then on the application route.You will notice that the external data can't be retrieved, since the API key was not set yet. For this, go back one step and select the
risk-management-srv
application. Click onUser Provided Variables
in the navigation bar on the left side and set the API key.Now, choose
Overview
on the left side and then restart the application to ensure that this variable change take effect.Now review the app again, by opening up the
risk-management
application.
Result
You have now successfully deployed and inspected your multi-target application to Cloud Foundry on SAP BTP.