Q: Build and Deploy a UI5-App to the Cloud without WebIDE Is there a Best Practice to Upload HTML5 Applications from a File without using the WebIDE.
My Goal is to create a Zip Package which I can deploy to multiple Subaccounts and just needs the proper Destination to get the App running.
Approach


*

*"Build"->"Build Project" in WebIDE

*exported the whole Projectfolder (with dist, webapp, .che...) via WebIDE into a Zip File

*in the Cloud Platform I used "Import from File"



Problem


*

*The App wont start

*not able to see the Destinations from Neo-app.json




A: The best practice is to use a Multi Target Applications (MTA).
This MTA can be deployed as a "Solution" (and not as a HTML5 app) to your SCP environment.
Your project needs a new file mta.yaml where some configuration is done.
You need to download the MTA Archive Builder and run the following command to get an .mtar file:
java -jar $MTA_BUILDER_HOME/mta_archive_builder.jar --mtar deploy.mtar --build-target=NEO build

You can then deploy this solution to your SCP accounts.

This can also be done via CMD using the SAP Cloud Platform Neo Environment SDK and the following command.
neo.sh deploy-mta -a "$SCP_ACCOUNT" -u "$SCP_USER" -p "$SCP_PASSWORD" -h hana.ondemand.com --source deploy.mtar --synchronous

Read more about creating MTAs here.
There is also a docker image which contains all the tools. This can be used for a CI/CD pipeline in Gitlab.

Edit: The MTA Archive Builder is deprecated. Cloud MTA Build Tool is the way to go.

A: I get the same issue, when i deploy my application in in HCP, the required destination is empty,even if the neo-app.json is correctly configured, and the application is correctly running locally.
I managed to resolve the issue, by deleting the ui5.yaml which is generated during the creation of Fiori element project.than I deployed my application on the HCP and application destination is now correctly set on required destination table.
