Unable to deploy SAPUI5 application with 404 error

5.1k Views Asked by At

I have created an app through the SAP Web IDE Full-Stack and attempted to deploy it to the SAP Cloud Platform. This appears to work fine, however, when I then go to use the deployed link it just displays "HTTP Status 404 - Not Found".

I tried looking for other solutions but had no luck. Here is my neo-app.json file:

neo-app

And this is my apps structure:

app structure

So it appears that it is pointing to the index correctly, the only thing I am noticing is that in the generated dist it does not contain an index file. I have tried manually adding it but it is being removed upon project rebuilt.

Could this be the problem? If so how can I fix this?

dist file

Any help would be greatly appreciated

2

There are 2 best solutions below

0
On

Managed to fix the issue, not entirely sure why, but upon removing the ExternalLib folder i can now successfully deploy and run the app on the SAP cloud platform

0
On

The folder structure of your SAP UI5 app is very important during deployment. Ideally you should have your webapp folder and your dist folder as the only folders in the root directory of the app. (It's okay if you do not have a dist folder).

Your neo-app.json file should also have a line like "welcomeFile":"webapp/index.html", pointing to your index.html or the root file of your application.

This should mostly solve the HTTP Status 404 issues.