<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Deploy your Ionic 4&#x2F;5 as a Web app on Firebase]]></title><description><![CDATA[<p dir="auto">Hello guys, in this post i'll show you how to deploy your ionic 4/5 app as a web app on <strong>Firebase</strong>.</p>
<p dir="auto">In this tutorial i'm assuming you have installed <strong>firebase-tools</strong> and you have created firebase project on firebase console.</p>
<p dir="auto">Let's dive :swimmer:</p>
<ol>
<li>
<p dir="auto">Open your terminal and <strong>cd</strong> to your root of ionic project</p>
</li>
<li>
<p dir="auto">Then run <code>ionic build —prod —release</code></p>
</li>
<li>
<p dir="auto">If you want to run and see before deploying you can install <code>http-server</code> from <strong>npm</strong> and run,</p>
<ol>
<li><code>cd www/</code></li>
<li><code>http-server .</code></li>
</ol>
</li>
<li>
<p dir="auto">Then initilize firebase by running <code>firebase init</code><br />
<img src="/assets/uploads/files/1586028499457-image-20200405003723256-resized.png" alt="image-20200405003723256.png" class=" img-responsive img-markdown" /><br />
Choose <strong>Hosting: Configure and deploy Firebase Hosting sites</strong> option (press <strong>space bar</strong> to choose) and press <strong>Enter</strong><br />
<img src="/assets/uploads/files/1586028524858-image-20200405003900555-resized.png" alt="image-20200405003900555.png" class=" img-responsive img-markdown" /><br />
Now choose <strong>Use an existing project</strong> and select your project<br />
<img src="/assets/uploads/files/1586028536833-image-20200405004011793-resized.png" alt="image-20200405004011793.png" class=" img-responsive img-markdown" /><br />
For this enter <strong>www</strong> as public directory<br />
<img src="/assets/uploads/files/1586028549706-image-20200405004050940-resized.png" alt="image-20200405004050940.png" class=" img-responsive img-markdown" /></p>
</li>
<li>
<p dir="auto">For next question enter **y **and for final question enter <strong>N</strong>.</p>
<p dir="auto">Now firebase has initilized on our project directory, you will see two nes files as <strong>firebase.json</strong> &amp; <strong>.firebaserc</strong>, it means firebase has initialised, let's move on</p>
</li>
<li>
<p dir="auto">Now run <code>firebase deploy</code> this command will deploy our app to firebase, after successfull deploy you will see like below.<br />
<img src="/assets/uploads/files/1586028561625-image-20200405004527355-resized.png" alt="image-20200405004527355.png" class=" img-responsive img-markdown" /><br />
Visit your newly hosted web app by going to **Hosting URL</p>
</li>
</ol>
]]></description><link>https://lankadevelopers.lk/topic/548/deploy-your-ionic-4-5-as-a-web-app-on-firebase</link><generator>RSS for Node</generator><lastBuildDate>Fri, 08 May 2026 08:24:29 GMT</lastBuildDate><atom:link href="https://lankadevelopers.lk/topic/548.rss" rel="self" type="application/rss+xml"/><pubDate>Sat, 04 Apr 2020 19:31:34 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Deploy your Ionic 4&#x2F;5 as a Web app on Firebase on Sat, 04 Apr 2020 22:17:25 GMT]]></title><description><![CDATA[<p dir="auto">this is ionic PWA ??</p>
]]></description><link>https://lankadevelopers.lk/post/3241</link><guid isPermaLink="true">https://lankadevelopers.lk/post/3241</guid><dc:creator><![CDATA[root]]></dc:creator><pubDate>Sat, 04 Apr 2020 22:17:25 GMT</pubDate></item></channel></rss>