{"id":2391,"date":"2015-12-08T06:58:12","date_gmt":"2015-12-08T06:58:12","guid":{"rendered":"http:\/\/www.nikola-breznjak.com\/blog\/?p=2391"},"modified":"2015-12-22T13:00:05","modified_gmt":"2015-12-22T13:00:05","slug":"how-to-deploy-ionic-as-a-website","status":"publish","type":"post","link":"https:\/\/nikola-breznjak.com\/blog\/stack-overflow\/how-to-deploy-ionic-as-a-website\/","title":{"rendered":"How to deploy Ionic as a website?"},"content":{"rendered":"<p><a href=\"http:\/\/stackoverflow.com\/users\/534755\/nikola\"><img loading=\"lazy\" decoding=\"async\" title=\"profile for Nikola at Stack Overflow, Q&amp;A for professional and enthusiast programmers\" src=\"http:\/\/stackoverflow.com\/users\/flair\/534755.png\" rel=\"lightbox[2391]\" alt=\"profile for Nikola at Stack Overflow, Q&amp;A for professional and enthusiast programmers\" width=\"208\" height=\"58\" \/><\/a><br \/>\nI&#8217;m a big fan of <a href=\"http:\/\/stackoverflow.com\/\">Stack Overflow<\/a> and I tend to contribute regularly (am currently in the <a href=\"http:\/\/stackexchange.com\/leagues\/1\/alltime\/stackoverflow\/2008-07-31\/534755?sort=reputationchange#534755\">top 0.X%<\/a>).\u00a0In this category (<a href=\"http:\/\/www.nikola-breznjak.com\/blog\/category\/stack-overflow\/\">stackoverflow<\/a>)\u00a0of posts, I will be posting my top rated questions and answers. This, btw, is allowed as explained in the meta thread <a href=\"http:\/\/meta.stackoverflow.com\/questions\/266971\/can-i-post-so-questions-and-answers-in-a-personal-blog\/266973\">here<\/a>.<\/p>\n<p>As you may know, I&#8217;m really into Ionic framework lately\u00a0and am helping out on StackOverflow with the knowledge I gained so far with the framework. I&#8217;m in the <a href=\"http:\/\/stackoverflow.com\/tags\/ionic\/topusers\">top All time answerers<\/a> list.<\/p>\n<p><strong>edit:\u00a0<\/strong>As of version 1.2 Ionic is <a href=\"http:\/\/www.nikola-breznjak.com\/blog\/ionic\/ionic-1-2-is-out\/\">officially saying <\/a>that you are free to deploy Ionic as a website.<\/p>\n<p>I answered <a href=\"http:\/\/stackoverflow.com\/questions\/33195748\/deploy-ionic-as-a-website\/33198389\">this question<\/a>\u00a0by user Ayush Chordia:<\/p>\n<p>I have created an ionic app and want to deploy it as a website. What&#8217;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.<\/p>\n<p>In <a href=\"http:\/\/stackoverflow.com\/a\/33198389\/534755\">my answer<\/a> I disagreed with <a href=\"http:\/\/stackoverflow.com\/a\/33195782\/534755\">this one<\/a>:<\/p>\n<blockquote><p>As I stated in the comment to the only provided answer &#8211; <strong>I disagree<\/strong>.<\/p>\n<p>If you&#8217;re not using any Cordova plugins then there is no problem (if you really wish to) to upload the contents of the <code>www<\/code> folder to your server, and woila &#8211; you&#8217;ll have the same app.<\/p>\n<p>However, it is important to note that Ionic never intended for such a use, and the users of your &#8220;website&#8221; will have to have a newest browser in order to see the &#8220;website&#8221; correctly (not broken down due to some feature that Ionic is using in either CSS or HTML that some older browsers do not support).<\/p>\n<p>You can see such example here: <a href=\"http:\/\/nikola-dev.com\/IonicCalculator\/mobile.html\" rel=\"nofollow\">http:\/\/nikola-dev.com\/IonicCalculator\/mobile.html<\/a>, and you can take a look at <a href=\"http:\/\/tutorials.pluralsight.com\/review\/how-to-create-a-calculator-application-with-ionic-framework-by-using-ionic-creator-for-ui\/article.md\" rel=\"nofollow\">the tutorial<\/a> with step by step on how to recreate the application. I literally took out the contents of the <code>www<\/code> folder and put it on the web server, and as you can see it works.<\/p>\n<p>https:\/\/twitter.com\/HitmanHR\/status\/674121400911863808<\/p><\/blockquote>\n","protected":false},"excerpt":{"rendered":"<p>I&#8217;m a big fan of Stack Overflow and I tend to contribute regularly (am currently in the top 0.X%).\u00a0In this category (stackoverflow)\u00a0of posts, I will be posting my&hellip;<\/p>\n","protected":false},"author":1,"featured_media":1991,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[43,35],"tags":[],"class_list":["post-2391","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-ionic","category-stack-overflow"],"_links":{"self":[{"href":"https:\/\/nikola-breznjak.com\/blog\/wp-json\/wp\/v2\/posts\/2391","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/nikola-breznjak.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/nikola-breznjak.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/nikola-breznjak.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/nikola-breznjak.com\/blog\/wp-json\/wp\/v2\/comments?post=2391"}],"version-history":[{"count":4,"href":"https:\/\/nikola-breznjak.com\/blog\/wp-json\/wp\/v2\/posts\/2391\/revisions"}],"predecessor-version":[{"id":2448,"href":"https:\/\/nikola-breznjak.com\/blog\/wp-json\/wp\/v2\/posts\/2391\/revisions\/2448"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/nikola-breznjak.com\/blog\/wp-json\/wp\/v2\/media\/1991"}],"wp:attachment":[{"href":"https:\/\/nikola-breznjak.com\/blog\/wp-json\/wp\/v2\/media?parent=2391"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/nikola-breznjak.com\/blog\/wp-json\/wp\/v2\/categories?post=2391"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/nikola-breznjak.com\/blog\/wp-json\/wp\/v2\/tags?post=2391"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}