on 2016 Jan 12 8:53 AM
Hello ,
we would create a central git repo for all our ui5 applications and now we have the problem when we create sub folders in the git repo.
And copy ui5 projects in there , we can't start this applications we get an 404 Error ?
Regards
Daniel
Request clarification before answering.
Hi Daniel,
From SAP Web IDE perspective your repository is a single project (even though you put more than one application in it).
Therefore you should have also a neo-app.json file in the root level of your project (for design-time purpose only) that will include all the routes you use in all the sub-applications of this project.
The paths in this neo-app.json file must be also adjusted according to the new structure.
So, for example, if you had a route to the SAPUI5 resources with the path "/webapp/resources" you'll now have to adjust it according to the new Component.js file location, e.g.: "/app1/webapp/reources" (assuming app1 is the folder with the app directly under your project root). And you'll have to create such route for all of your sub-applications.
Also, in order to be sure you are running the application you intended to - I recommend you to select in your workspace specifically the Component.js file of the desired sub-application, and right-click on it to perform the Run operation (as the Fiori Sandbox is actually using the Component.js file as an entry point to run the application code).
Regards,
Rotem
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Ho, and I forgot to mention one thing:
Even though putting more than one SAPUI5 app in a single repository is possible (if you follow the instructions above) - it is still not a recommended thing to do....
SAP Web IDE allows you to do many operations on a project level that will be much less useful when you use your project only as a "main storage" for all of your apps...
For example: deploying your applications to the SAPUI5 ABAP Repository or to the SAP HANA Cloud Platform - will cause deploying all your 5 apps under the same application entry (as you can deploy only an entire project and not only part of it).
I strongly recommend you to adopt the SAP HANA Cloud Platform approach: one git repository per application project...
You need to adjust the path to the app's index.html in its neo-app.json (welcomeFile).
Regards,
Michal.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
40 | |
15 | |
10 | |
9 | |
5 | |
5 | |
5 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.