<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Angular Github on Serge Gatezh</title><link>https://gatezh.com/categories/angular-github/</link><description>Recent content in Angular Github on Serge Gatezh</description><generator>Hugo</generator><language>en-us</language><lastBuildDate>Tue, 04 Apr 2017 19:54:55 -0400</lastBuildDate><atom:link href="https://gatezh.com/categories/angular-github/index.xml" rel="self" type="application/rss+xml"/><item><title>Getting started with Jekyll</title><link>https://gatezh.com/posts/getting-started-with-jekyll/</link><pubDate>Tue, 04 Apr 2017 19:54:55 -0400</pubDate><guid>https://gatezh.com/posts/getting-started-with-jekyll/</guid><description>&lt;h2 id="install-ruby"&gt;Install ruby&lt;/h2&gt;
&lt;blockquote&gt;
&lt;p&gt;Here I assume that you have &lt;code&gt;brew&lt;/code&gt; already installed on your Mac machine. &lt;a href="https://brew.sh"&gt;Install it&lt;/a&gt; first if you don&amp;rsquo;t have it.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;&lt;a href="https://github.com/rbenv/rbenv/issues/938#issuecomment-285342541"&gt;I had to do the following&lt;/a&gt;&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;&lt;code&gt;sudo xcode-select --install&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;Install rbenv with &lt;code&gt;brew install rbenv&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;Add &lt;code&gt;eval &amp;quot;$(rbenv init -)&amp;quot;&lt;/code&gt; to the end of &lt;code&gt;~/.zshrc&lt;/code&gt; or &lt;code&gt;~/.bash_profile&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;Install a ruby version &lt;code&gt;rbenv install 2.4.1&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;Select a ruby version by rbenv &lt;code&gt;rbenv global 2.4.1&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;Open a new terminal window&lt;/li&gt;
&lt;li&gt;Verify that the right gem folder is being used with &lt;code&gt;gem env home&lt;/code&gt; (should report something in your user folder not system wide)&lt;/li&gt;
&lt;/ol&gt;
&lt;blockquote&gt;
&lt;p&gt;If you are on Windows then just &lt;a href="https://www.ruby-lang.org/en/downloads/"&gt;install Ruby 2.1.0 or higher&lt;/a&gt;&lt;sup id="fnref:1"&gt;&lt;a href="#fn:1" class="footnote-ref" role="doc-noteref"&gt;1&lt;/a&gt;&lt;/sup&gt;&lt;/p&gt;</description></item><item><title>Host your personal blog on GitHub Pages</title><link>https://gatezh.com/posts/host-your-personal-blog-on-github-pages/</link><pubDate>Tue, 04 Apr 2017 19:53:19 -0400</pubDate><guid>https://gatezh.com/posts/host-your-personal-blog-on-github-pages/</guid><description>&lt;p&gt;The initial idea was to write a small post about how to create a Jekyll blog hosted on GitHub. However, when I started to dig dipper and had realized how many things I&amp;rsquo;ll have to describe to make it a manual I&amp;rsquo;ve decided to make this index page which will collect all the posts about this topic. I will try to keep it up to date and make changes whenever I figure out more.&lt;/p&gt;</description></item><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"&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"&gt;this FAQ&lt;/a&gt;&lt;/p&gt;</description></item></channel></rss>