Deploy Fiori App To SAP Cloud Foundry: Unterschied zwischen den Versionen

Aus MattWiki
(Die Seite wurde neu angelegt: „This article describes how to deploy a SAP Fiori App built locally with Visual Studio Code to SAP Cloud Foundry. It is based on the following article that des…“)
 
 
(Eine dazwischenliegende Version desselben Benutzers wird nicht angezeigt)
Zeile 31: Zeile 31:


  npx fiori add deploy-config
  npx fiori add deploy-config
The deployment config contains where to deploy:
* HTML5 Application Repository
* Required Destinations
* Authorization Services for Security
It will be stored in the following files:
* ui5-deploy.yaml
* xs-app.json
* xs-security.json
* manifest.json (?) (ID, name, dependencies, and destinations of OData)


Fiori Launchpad config:
Fiori Launchpad config:
Zeile 46: Zeile 59:
https://sap.github.io/cloud-mta-build-tool/
https://sap.github.io/cloud-mta-build-tool/
https://developers.sap.com/tutorials/cp-cf-install-cliplugin-mta.html
https://developers.sap.com/tutorials/cp-cf-install-cliplugin-mta.html
[[Category:SAP]]
[[Category:HANA]]
[[Category:JavaScript]]

Aktuelle Version vom 4. Juli 2021, 16:31 Uhr

This article describes how to deploy a SAP Fiori App built locally with Visual Studio Code to SAP Cloud Foundry.

It is based on the following article that describes how to deploy a SAP Fiori App build with SAP Business Application Studio:

https://github.com/SAP-samples/fiori-elements-opensap/blob/main/week3/unit4.md

Prerequisites

Install:

npm i -g mbt
npm i -g yo

In case of Windows also install GNU make 4.2.1:

Download from https://github.com/mbuilov/gnumake-windows

Move it to a suitable local directory, i.e. C:\Users\username\AppData\Local\Programs

Add the directory to the PATH environment variable.

Rename the downloaded file to make.exe

Install cf plugin for deployment:

cf install-plugin -f https://github.com/cloudfoundry-incubator/multiapps-cli-plugin/releases/latest/download/multiapps-plugin.win64

Add Additional Config Files

Deployment config:

npx fiori add deploy-config

The deployment config contains where to deploy:

  • HTML5 Application Repository
  • Required Destinations
  • Authorization Services for Security

It will be stored in the following files:

  • ui5-deploy.yaml
  • xs-app.json
  • xs-security.json
  • manifest.json (?) (ID, name, dependencies, and destinations of OData)

Fiori Launchpad config:

npx fiori add flp-config

Build & Deploy

npm run build:mta
npm run deploy

Sources

https://blogs.sap.com/2019/11/19/enjoy-our-new-tool-for-building-mta-archives/#_Toc23686887 https://sap.github.io/cloud-mta-build-tool/ https://developers.sap.com/tutorials/cp-cf-install-cliplugin-mta.html