Expand Ionic as a website

I created an ionic application and want to deploy it as a website. What is the best way to deploy to a custom domain? I thought of using an azure web application to host an ionic application. All documentation relates to use as a hybrid application for iOS and Android. But at the moment, we are only interested in making it function as a website.

+12
angularjs ionic-framework ionic
Oct 18 '15 at 8:18
source share
4 answers

edit: Ionic 1.2 officially supports deployment as a website !

As I pointed out in the commentary on the only answer provided - I do not agree .

If you do not use any Cordoba plugins, then there is no problem (if you really want to) upload the contents of the www folder to your server, and woila - you will have the same application.

However, it’s important to note that Ionic was never intended for such use, and users of your “website” must have a new browser in order to correctly see the “website” (not broken because of some of the features that Ionic uses in CSS or HTML which are not supported by some older browsers).

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

+9
Oct 18 '15 at 13:22
source share

This is a late answer, but as official for Ionic 2:

With Ionic 2, we fully support the web interface (including support for progressive web applications) as a platform right next to Android, IOS, Windows 10 and Electron. Thanks for using Ionic!

AND

If you use some Cordoba plugins that only work on platforms, then they won’t work on the Internet, although if you use Ionic’s native, they will gracefully fail. But if you stay away from using these specific plugins or recording logic to provide an alternative when online then it should work perfectly. In addition, our browser support includes Chrome, Safari, Firefox, Opera (since it's just chrome now) and Edge. We do not support any version of Internet Explorer with Ionic 2. So basically, if you keep the Cordoba plugins in memory, the same Ionic 2 project that works on your Android, iOS or Windows 10 device will work just as well in the browser . Thank!

Source for this: https://github.com/driftyco/ionic/issues/7376




From my experience in Ionic 1, just working on a website is just copying / pasting the www directory, in fact, it makes sense you use the AngularJS website! you may have some errors and some of the functions that do not work (I mean my own plugins, for example facebookConnect ), but you can handle this and launch the web version.

In our company, we have an application that runs both a website with firebase and a mobile application with the same code, but you need to write a few lines to process a web browser or a mobile native call.

+4
Feb 05 '17 at 13:16
source share

Check my ionic answer : use the framework only with HTML5 in the idea of ​​using it as a web application.

You can deploy it as a static website on s3 and use your own domain to point to s3. You can configure the s3 bucket to use as a static website. There are many tutorials on how to do this.

+1
Oct 19 '15 at 6:09
source share

For ionic2, add the corbova browser platform, then upload it to the web server platforms/browser/www

0
Jan 03 '18 at 10:41
source share



All Articles