7 - Build and Deploy App to BTP
Build your app and deploy it to SAP BTP, as part of the SAP Build CodeJam.
Overview
You will learn
- How to compile/build your app to an MTAR file
- How to deploy your app to SAP BTP
Prerequisites
Prerequisites
- You have completed the previous tutorial for the SAP Build CodeJam, Add Approval Flow to Process.
Steps
Intro
Open your ShoppingApp SAP Build Apps project.
Click Publish.
Click Build and Deploy.

Open Publish The build screen is displayed.

Build screen Click Create Configuration.

Create configuration Click SAP Build Work Zone.

SAP Build Work Zone configuration For the name of the configuration, enter:
StandardWZ
Configuration name Click Create.
Click the 3 dots on the new configuration, and select Build.

Start build Enter
1.0.0for the version, and click Build.
Click build The build will start, and you will see Building as the status.

Building It may take about 6 minutes to finish, so this is a time for questions and coffee and cake. โ๐ฐ
When complete, you will see the Delivered status.

Delivered
Click on the row with your successful build.

Successful build Click Deploy.

Click deploy Select the Cloud Foundry endpoint for your SAP BTP.
You can see your landscape by going to the SAP BTP cockpit, on the Overview tab, and see the URL for your Cloud Foundry environment.

SAP BTP landscape Click Login with BTP.

Login Click on Sign in with default identity.

User This will log you into Cloud Foundry. Click Authorize.

Authorize Select your Cloud Foundry organization and space โ to where you are deploying. If you are using a trial account, you likely will have just one organization and space.

Org and space Click Continue.
You should get a progress bar. It should take about 60 seconds to complete.

Progress bar When the deployment finishes, you should get a URL to your deployed app.
Save the URL.

App URL If you lose the link to your app, you can see all your deployed apps in your trial account, under HTML5 Applications.

HTML5 Applications Click the link and you should see your app.

App running If you click the link and get Internal Server Error, complete the next step.

App error
IMPORTANT: This step is only necessary if you get Internal Server Error when running your deployed app in the previous step.
Go back to the BTP Cockpit, and open Instances and Subscriptions.
Click the icon next to SAP Build Work Zone, standard edition.

Open Work Zone Open the Settings screen.

Open Settings Select the Identity Auhentication tab.
Enable the check box, and click Enable.

Enable identity authentication A message In process will briefly appear.

In process It will then turn to Success.

Success Run the app by opening a browser to the URL you saved in the previous step.

App running
Resources
Discussion
Share feedback on this tutorial or join the conversation in SAP Community.