Skip to Content
0
May 20, 2020 at 11:23 AM

Deploy complete app (with UI to the SCP)

1479 Views

Hi guys,

with the openSAP CAP course I was able to deploy the bookshop from (week 3 - unit 4) manually as well as an MTA. I wanted to extend the app by providing the UI and therefore I tried to deploy the UI part as well. Hence, I changed the version in the 'mta.yaml' and copied some lines from the generated mta.yaml file regarding the app (from week3 - unit 5), resulting with the following file:

## Generated mta.yaml based on template version 0.2.0
## appName = capire-bookshop
## language=nodejs; multiTenant=false
## approuter=
_schema-version: '3.1'
ID: sap.capire-bookshop
version: 1.0.1
description: "A simple bookshop application, build in a self-contained all-in-one fashion, i.e. w/o reusing other packages."
parameters:
  enable-parallel-deployments: true
  
  
build-parameters:
  before-all:
   - builder: custom
     commands:
      - npm install
      - npx cds build

modules:
 # --------------------- SERVER MODULE ------------------------
 - name: capire-bookshop-srv
 # ------------------------------------------------------------
   type: nodejs
   path: gen/srv
   properties:
     EXIT: 1  # required by deploy.js task to terminate 
   requires:
    # Resources extracted from CAP configuration
    - name: capire-bookshop-db
   provides:
    - name: srv-binding      # required by consumers of CAP services (e.g. approuter)
      properties:
        srv-url: ${default-url}

 # -------------------- SIDECAR MODULE ------------------------
 - name: db
 # ------------------------------------------------------------
   type: hdb
   path: gen/db  
   parameters:
     app-name: capire-bookshop-db  
   requires:
    # 'hana' and 'xsuaa' resources extracted from CAP configuration
    - name: capire-bookshop-db

  ##############    APP   #########################
 - name: capire-bookshop-app
   type: nodejs
   path: gen/app
   parameters:
      memory: 256M
   build-parameters:
     requires:
       - name: capire-bookshop-srv


resources:
 # services extracted from CAP configuration
 # 'service-plan' can be configured via 'cds.requires.<name>.vcap.plan'
# ------------------------------------------------------------
 - name: capire-bookshop-db
# ------------------------------------------------------------
   type: com.sap.xs.hdi-container
   parameters:
     service: hanatrial  # or 'hanatrial' on trial landscapes
     service-plan: hdi-shared
   properties:
     hdi-service-name: ${service-name}



After building the mtar archive and trying to deploy the update I receive the following error:

Error staging application "capire-bookshop-app": StagingError - Staging error: No process types returned from stager

Did I miss some properties in the mta.yaml file?
What triggers the error and how can I resolve it?

Cheers,
Thorsten