Skip to Content

7 - Build and Deploy App to BTP

Build your app and deploy it to SAP BTP, as part of the SAP Build CodeJam.
You will learn
  • How to compile/build your app to an MTAR file
  • How to deploy your app to SAP BTP
thecodesterDaniel WroblewskiSeptember 28, 2025
Created by
thecodester
December 12, 2024
Contributors
thecodester

Prerequisites

  • Step 1
    1. Open your ShoppingApp SAP Build Apps project.

    2. Click Publish.

      Click Build and Deploy.

      Open Publish

      The build screen is displayed.

      Build screen
    3. Click Create Configuration.

      Create configuration
    4. Click SAP Build Work Zone.

      SAP Build Work Zone configuration
    5. For the name of the configuration, enter: StandardWZ

      Configuration name

      Click Create.

    6. Click the 3 dots on the new configuration, and select Build.

      Start build

      Enter 1.0.0 for 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
  • Step 2
    1. Click on the row with your successful build.

      Successful build
    2. Click Deploy.

      Click deploy
    3. 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
    4. 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
    5. 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
  • Step 3

    IMPORTANT: This step is only necessary if you get Internal Server Error when running your deployed app in the previous step.

    1. 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
    2. Open the Settings screen.

      Open Settings
    3. 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
    4. Run the app by opening a browser to the URL you saved in the previous step.

      App running

    In this tutorial, which steps did you use to deploy the app onto BTP?

Back to top