Deploy Ionic as a website

前端 未结 4 1610
眼角桃花
眼角桃花 2020-12-29 06:23

I have created an ionic app and want to deploy it as a website. What\'s the best way to deploy it on a custom domain? I was thinking of using azure web app to host the ionic

4条回答
  •  囚心锁ツ
    2020-12-29 06:50

    edit: Ionic 1.2 officially supports deployment as a website!

    As I stated in the comment to the only provided answer - I disagree.

    If you're not using any Cordova plugins then there is no problem (if you really wish to) to upload the contents of the www folder to your server, and woila - you'll have the same app.

    However, it is important to note that Ionic never intended for such a use, and the users of your "website" will have to have a newest browser in order to see the "website" correctly (not broken down due to some feature that Ionic is using in either CSS or HTML that some older browsers do not support).

    You can take a look at the tutorial with step by step on how to recreate the application. I literally took out the contents of the www folder and put it on the web server, and as you can see it works.

提交回复
热议问题