<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Angular on Serge Gatezh</title><link>https://gatezh.com/categories/angular/</link><description>Recent content in Angular on Serge Gatezh</description><generator>Hugo</generator><language>en-US</language><lastBuildDate>Wed, 16 Sep 2026 20:41:04 -0600</lastBuildDate><atom:link href="https://gatezh.com/categories/angular/index.xml" rel="self" type="application/rss+xml"/><item><title>How to host Angular application on GitHub Pages</title><link>https://gatezh.com/posts/how-to-host-angular-application-on-github-pages/</link><pubDate>Fri, 31 Mar 2017 15:26:55 -0400</pubDate><guid>https://gatezh.com/posts/how-to-host-angular-application-on-github-pages/</guid><description>&lt;p&gt;&lt;strong&gt;[Last update 04-04-2017]&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;To install the command run the following:&lt;/p&gt;
&lt;pre tabindex="0"&gt;&lt;code&gt;npm i -g angular-cli-ghpages
&lt;/code&gt;&lt;/pre&gt;&lt;blockquote&gt;
&lt;p&gt;Note: you have to create the &lt;strong&gt;dist&lt;/strong&gt; folder in before (e.g. &lt;code&gt;ng build --prod&lt;/code&gt;)&lt;/p&gt;
&lt;/blockquote&gt;
&lt;pre tabindex="0"&gt;&lt;code&gt;ng build --prod --base-href &amp;#34;https://USERNAME.github.io/REPOSITORY/&amp;#34;
ngh
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;In case you use a custom domain for one of your repositories (like I do for this blog), you should use &lt;code&gt;http&lt;/code&gt; instead&lt;/p&gt;
&lt;pre tabindex="0"&gt;&lt;code&gt;ng build --prod --base-href &amp;#34;http://YOURDOMAIN.com/REPOSITORY/&amp;#34;
ngh
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;For more information check &lt;a href="https://github.com/angular-buch/angular-cli-ghpages" target="_blank" rel="noopener noreferrer"&gt;angular-cli-ghpages&lt;/a&gt; GitHub Page.&lt;/p&gt;
&lt;p&gt;There might be a problem with routing. If so check &lt;a href="https://github.com/angular-buch/angular-cli-ghpages/wiki/FAQ#why-is-the-routing-not-working-correctly-on-hard-reload-specific-to-github-pages-only" target="_blank" rel="noopener noreferrer"&gt;this FAQ&lt;/a&gt;&lt;/p&gt;</description></item></channel></rss>