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

How to deploy the app into cumulocity? #1

Closed pranay-91 closed 6 years ago

pranay-91 commented 6 years ago

I would like to deploy this app as an application into cumulocity. I have tried the following steps:

Would anyone be able to provide information step by step on how to deploy this app?

Thanks

dwiyatci commented 6 years ago

Hi, @pranay-91! :)

I think I made a bit mistake in setting the publicPath in the output section of the webpack configuration. I have fixed that and have also updated the docs, explaining how to deploy the app to Cumulocity in particular. Let me know if this solves your issue.

pranay-91 commented 6 years ago

Hi @dwiyatci, Thanks for updated docs and the fixes. I have followed the steps. unfortunately I am getting same error 404 on nginx. It might possibly to do with the tenancy.

Do we need to provide cumulocity.json or App manifest file inside the zip file? Have you tested this boilerplate with any cumulocity tenancy?

I am using mac os high sierra. The cumulocity version i am using is 8.19.19 backend and 8.19.18 ui.

Thanks

pranay-91 commented 6 years ago

Hi @dwiyatci, I have resolved the issue. The zip (assets) needs to include only the relevant file not including the root directory itself. For e.g. If we have assets bundled folder

The zip should be(if we renamed the assets to smart-apps)

Following would not work:

Thanks

dwiyatci commented 6 years ago

@pranay-91 Glad that you resolved the issue. Yes, I guess I've already mentioned it quite clearly in the updated docs.

Zip all files under assets directory (⚠️ not the directory itself!) and name the ZIP file as "smartapps" or whatever you want to call the app.

Cheers, mate! ;)