dwiyatci / cumulocity-smart-apps-webpack

☁️ A boilerplate for creating Cumulocity Smart Apps intance using webpack-dev-server 3.x
MIT License
0 stars 3 forks source link

404 error #2

Closed babupca closed 6 years ago

babupca commented 6 years ago

Hi, I have build the application and deployed it in the adamos. When i click the application i go to the 404 page.

As per your steps in the github, i zipped the assets contents inside to another folder named "smartapps", but it seems not working.

If i'm correct, whenever i click the smartapps application, it should take me to that angular app, but instead it is saying 404 error.

Could you please let me know, what wrong i'm doing here.

https://tempar.adamos.com/apps/smartapps/index.html

dwiyatci commented 6 years ago

As per your steps in the github, i zipped the assets contents inside to another folder named "smartapps", but it seems not working.

Don't zip your "smartapps" folder, zip the contents without any enclosing folder. To make sure you do it right: after you zip the contents to a ZIP archive, e.g. "smartapps.zip", try to "Extract Here" that ZIP archive and check whether index.html file is extracted directly to the current location of the archive.

babupca commented 6 years ago

Current location means, which place you are talking about? is the below location with in the cumulocity-smart-apps-webpack image

image image image

This smartapps, is zipped and uploaded to the cumulocity, is this correct ?

image

babupca commented 6 years ago

I basically extracted all the contents of the assets to the "cumulocity-smart-apps-webpack" folder. Is this correct.

And then i uploaded the zipped this and uploaded to the cumulocity, but still i get 404 error only

dwiyatci commented 6 years ago

Please refer to this comment in issue #1.

babupca commented 6 years ago

@dwiyatci , Thank you very much, its working now. I did not recognize that another folder is getting added inside the zip folder, this is causing the issue basically.

Thanks for responding quickly