You will deploy your CAP application into the Cloud Foundry environment of the SAP Business Technology Platform.
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
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
cf loginfirst and provide the necessary information.This process can take some minutes and finally creates a log output like this:Code snippetExpand
cf deploy gen/mta.tarCode 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.
risk-managementapplication 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-srvapplication. Click on
User Provided Variablesin the navigation bar on the left side and set the API key.
Overviewon 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
You have now successfully deployed and inspected your multi-target application to Cloud Foundry on SAP BTP.