Deploy in SAP BTP, Cloud Foundry Runtime
This tutorial shows you how to deploy your CAP application as a multi-target application (MTA).
Overview
You will learn
- How to deploy your CAP application as a multi-target application (MTA)
Prerequisites
Prerequisites
- You’ve configured the respective entitlements, enabled the Cloud Foundry runtime in your subaccount, and created an SAP HANA Cloud service instance in the SAP BTP cockpit. Follow the steps in the Prepare for Deployment in the SAP BTP, Cloud Foundry Runtime tutorial that is part of the Deploy a Full-Stack CAP Application in SAP BTP, Cloud Foundry Runtime Following SAP BTP Developer’s Guide tutorial group.
- You have an enterprise global account in SAP BTP. To use services for free, you can sign up for an SAP BTPEA (SAP BTP Enterprise Agreement) or a Pay-As-You-Go for SAP BTP global account and use the free tier services only. See Using Free Service Plans.
- You have a platform user. See User and Member Management.
- You’re an administrator of the global account in SAP BTP.
- You have a subaccount in SAP BTP to deploy the services and applications.
- You have a tenant of SAP Cloud Identity Services. See Get Your Tenant for details how to get a tenant of SAP Cloud Identity Services if you don’t have one yet.
- You’ve established trust between your tenant of SAP Cloud Identity Services and your SAP BTP account. This established trust allows you to use your SAP Cloud Identity Services tenant as an identity provider or a proxy to your own identity provider hosting your business users. See Establish Trust and Federation Between SAP Authorization and Trust Management Service and SAP Cloud Identity Services.
- You have one of the following browsers that are supported for working in SAP Business Application Studio:
- Mozilla Firefox
- Google Chrome
- Microsoft Edge
OUT OF MAINTENANCE
This tutorial is no longer maintained. For an up-to-date version and support with any issues, refer to the Develop a Full-Stack CAP Application Following the SAP BTP Developer’s Guide mission in the SAP Discovery Center.
Steps
The SAP BTP, Cloud Foundry environment allows you to create polyglot cloud applications in Cloud Foundry. It contains the SAP BTP, Cloud Foundry runtime, which is based on the open-source application platform managed by the Cloud Foundry Foundation.
The SAP BTP, Cloud Foundry environment enables you to develop new business applications and business services, supporting multiple runtimes, programming languages, libraries, and services.
For more information about the Cloud Foundry environment, see Cloud Foundry Environment.
From the root of the INCIDENT-MANAGEMENT project, choose the burger menu, and then choose Terminal → New Terminal.
Log in to your subaccount in SAP BTP:
Shellcf api <API-ENDPOINT> cf login cf target -o <ORG> -s <SPACE>You can find the API endpoint in the Overview section of your subaccount in the SAP BTP cockpit.
Run the following command to deploy your application to the SAP BTP, Cloud Foundry runtime:
Shellcds upThe
cds upcommand simplifies the deployment process. It automates the steps that are otherwise done manually:- Adding the mta deployment descriptor with the
cds add mtacommand. - Building the deployment archive with the
mbt buildcommand. - Deploying to the Cloud Foundry environment with the
cf deploycommand.
- Adding the mta deployment descriptor with the
Check if all services have been created:
Shellcf services
Services after deploy Check if the apps are running:
Shellcf apps
App after deploy
In the next tutorials, you’ll access your UIs from SAP Build Work Zone, standard edition. The SAP Build Work Zone, standard edition triggers the authentication flow to provide the required token to access the service.
Resources
Discussion
Share feedback on this tutorial or join the conversation in SAP Community.