部署离子作为一个网站 [英] Deploy Ionic as a website

查看:190
本文介绍了部署离子作为一个网站的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经创建了一个应用程序离子,并希望其部署为一个网站。什么是部署在自定义域的最佳方式?我想用蔚蓝色的Web应用程序来承载离子应用程序。所有的文件指的是用它作为iOS和Android应用程序的混合。但在这一点上,我们只关心为它作为一个网站的作用。

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 app. All the documentation refers to use it as hybrid app for IOS and Android. But at this point, we are only interested for it to function as a website.

推荐答案

编辑:离子1.2正式的支持的部署作为一个网站

我在给仅供答案评论说 - 我不同意

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

如果你不使用任何插件,科尔多瓦则没有问题(如果你真的想)到 WWW 文件夹的内容上传到您的服务器, woila - 你就会有相同的应用程序

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.

不过,要注意的是离子从来没有打算为这种用途是重要的,你的网站的用户将必须有一个最新的浏览器才能看到网站正确(不分解,由于一些功能离子在任一CSS或一些较旧的浏览器不支持HTML)。使用

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).

您可以在这里看到这样的例子: http://nikola-dev.com/IonicCalculator/mobile html的,你可以看看<一个href=\"http://tutorials.pluralsight.com/review/how-to-create-a-calculator-application-with-ionic-framework-by-using-ionic-creator-for-ui/article.md\"相对=nofollow>步骤就如何重新创建应用程序的步骤教程。我硬是拿出了 WWW 文件夹的内容,并把它放在Web服务器上,并且你可以看到它的工作原理。

You can see such example here: http://nikola-dev.com/IonicCalculator/mobile.html, and 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.

这篇关于部署离子作为一个网站的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆