Tuesday, August 25, 2020

SAP SCP Cloud Foundry - MTA deploy HTML5 module (WIP) - in Business Application studio

Business application studio (BAS) is new IDE from SAP, which is meant to replace WebIDE full stack in a role of standard development tool. And I have to say, that it is pretty good replacement. 

One of the best things about BAS is that it has terminal available and all necessary command line tools are present - CF cli with plugins (MTAR, HTML 5), MDB and Yeoman.

The last one - Yeoman is a modular tool for generating code based on various templates. It is based on NodeJS and templates are distributed through NPM as a packages.



Quick tip how to raise log level of app router 

cf set-env App_Router_App_Name XS_APP_LOG_LEVEL DEBUG

cf restage App_Router_App_Name

Replace the App_Router_App_Name with the appRouter application.


ID: mta_test-cf
_schema-version: '2.1'
parameters:
  deploy_mode: html5-repo
version: 0.0.1
modules:
  - name: mta_test-cf_appRouter
    # ....
    requires:
      - name: mta_test-cf_html5_repo_runtime
      - name: uaa_mta_test-cf
      - name: dest_mta_test-cf # <-------------------- this line fixed it
    # ...
resources:
  # ....
  - name: dest_mta_test-cf # <------------------------ name needs to match this 
    parameters:
      service-plan: lite
      service: destination 
 type: org.cloudfoundry.managed-service 

No comments:

Post a Comment