Create a HTML5 app using Webide first. New->project from Template:
Select SAPUI5 application from the optional template:
Create a HTML5 Module, named Frontend
The following project files are created automatically.
To build this project:
After the build succeeds, export the project file locally to generate the mta1.zip.
Go to the Mta1 folder and execute the command
Java-jar Mta.jar--BUILD-TARGET=CF--mtar=jerry.mtar
Generates a command line parameter--mtar the specified file Jerry.mtar.
Finally, log in to cloud foundry using CF Login:
Use the command CF deploy Jerry.mtar to deploy the local file Jerry.mtar to the Cloud foundry:
After that, you can see the successful deployment of HTML5 applications in the cockpit of the SAP cloud Platform.
Click the hyperlink to open the app.
To get more original Jerry's technical articles, please follow the public number "Wang Zixi" or scan the QR code below:
How to upload HTML5 application to the Cloud Foundry environment of SAP platform