<?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" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Russell Jones on Medium]]></title>
        <description><![CDATA[Stories by Russell Jones on Medium]]></description>
        <link>https://medium.com/@fullstackdev42?source=rss-3a69895f0db------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*DtPtAIMgVEveoR5XBE6rwQ.png</url>
            <title>Stories by Russell Jones on Medium</title>
            <link>https://medium.com/@fullstackdev42?source=rss-3a69895f0db------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 06 Dec 2026 11:13:24 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@fullstackdev42/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[History of Palestine Region]]></title>
            <link>https://medium.com/@fullstackdev42/history-of-palestine-region-2b0195ec754b?source=rss-3a69895f0db------2</link>
            <guid isPermaLink="false">https://medium.com/p/2b0195ec754b</guid>
            <category><![CDATA[middle-east]]></category>
            <category><![CDATA[timeline]]></category>
            <category><![CDATA[history]]></category>
            <dc:creator><![CDATA[Russell Jones]]></dc:creator>
            <pubDate>Fri, 26 Jan 2024 21:41:38 GMT</pubDate>
            <atom:updated>2024-01-26T21:41:38.766Z</atom:updated>
            <content:encoded><![CDATA[<h3>History of Palestine Region (WIP)</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*iH3rPWYmbEufcTsv" /><figcaption>Photo by <a href="https://unsplash.com/@dmclenachan?utm_source=medium&amp;utm_medium=referral">David McLenachan</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p><strong>Before 10,000 BCE</strong>: The region of Palestine</p><ul><li>This region, part of the so-called fertile crescent, was among the earliest in the world to see human habitation, agricultural communities, and civilization.</li><li>Various civilizations, including the Canaanites, Phoenicians, and Israelites, established their kingdoms in this region.</li></ul><p><strong>1200s</strong>: The Ottoman Empire was founded by the Turkoman tribal leader Osman I.</p><ul><li>Osman I, a ruler of a Turkmen principality in northwestern Anatolia (modern-day Turkey), led military campaigns against the Byzantine Empire.</li><li>His father, Ertugrul, had established a principality centered at Sögüt, a town in Bilecik Province, Turkey today.</li><li>Osman and the Muslim frontier warriors (Ghazis) under his command waged wars against the Byzantines, who sought to defend their territories in the hinterland of the Asiatic shore opposite Constantinople (now Istanbul).</li></ul><p><strong>1516</strong>: Selim I, the Sultan of the Ottoman Empire, conquered Syria, Arabia, Palestine, and Egypt.</p><ul><li>Selim I defeated the Mamluk armies at the battles of Marj Dābiq (north of Aleppo) on August 24, 1516, and Raydāniyyah (near Cairo) on January 22, 1517.</li><li>These victories resulted in the conquest of Syria, Egypt, and Palestine, which were previously under the control of the Mamluk Sultanate, a political power in the region at the time.</li></ul><p><strong>1839</strong>: Moses Montefiore’s Petition</p><ul><li>Moses Montefiore petitioned Sa’id of Egypt for a Jewish homeland in the region of Palestine.</li></ul><p><strong>1820</strong>: Mordecai Manuel Noah’s Attempt</p><ul><li>Mordecai Manuel Noah tried to found a Jewish homeland at Grand Island in the Niagara River, to be called “Ararat” after Mount Ararat, the Biblical resting place of Noah’s Ark.</li></ul><p><strong>1903</strong>: The Uganda Scheme</p><ul><li>British Colonial Secretary Joseph Chamberlain offered a portion of the East Africa Protectorate to the Jewish people as a homeland. This offer, known as the Uganda Scheme, was brought to the World Zionist Organization’s Sixth Zionist Congress in Basel.</li></ul><p><strong>1914–1918</strong>: World War I</p><ul><li>This global conflict, also known as the Great War, erupted in 1914 after the assassination of Archduke Franz Ferdinand of Austria.</li><li>It involved many nations, including Germany, Austria-Hungary, Bulgaria, and the Ottoman Empire (the Central Powers) against Great Britain, France, Russia, Italy, Romania, Canada, Japan, and the United States (the Allied Powers)</li><li>The war ended in 1918 with an Allied victory, marking the end of the Ottoman Empire’s control over the region.</li></ul><p><strong>1914–1918</strong>: World War I</p><ul><li>This global conflict, also known as the Great War, started in 1914 after the assassination of Archduke Franz Ferdinand of Austria<a href="https://www.un.org/en/about-us/history-of-the-un"><strong>7</strong></a>. It involved many nations, including Germany, Austria-Hungary, Bulgaria, and the Ottoman Empire (the Central Powers) against Great Britain, France, Russia, Italy, Romania, Canada, Japan, and the United States (the Allied Powers)<a href="https://www.un.org/en/about-us/history-of-the-un"><strong>7</strong></a>.</li><li><strong>1920</strong>: Formation of the League of Nations<a href="https://www.history.com/topics/world-war-i/world-war-i-history"><strong>1</strong></a><a href="https://www.history.com/topics/world-war-i/league-of-nations"><strong>2</strong></a></li><li>The League of Nations was an international diplomatic group developed after World War I as a way to solve disputes between countries before they erupted into open warfare<a href="https://www.history.com/topics/world-war-i/world-war-i-history"><strong>1</strong></a>.</li><li>It was formally instituted on January 10, 1920<a href="https://www.history.com/topics/world-war-i/world-war-i-history"><strong>1</strong></a>.</li><li><strong>1922</strong>: British Mandate over Palestine</li><li>The British were entrusted with a League of Nations mandate over Palestine, intending to facilitate the partitioning of Palestine to establish a Jewish national home.</li><li>The mandate was a result of the San Remo conference in April 1920, following the end of World War I. The territories of Palestine and Transjordan, which had been conceded by the Ottoman Empire, were to be administered by Britain1. The mandate was in force from 29 September 1923 to 15 May 19481.</li><li>During this period, Britain oversaw a succession of protests, riots, and revolts between the Jewish and Palestinian Arab communities. The area saw the rise of two nationalist movements: the Jews and the Palestinian Arabs1. The mandate ended when the United Nations passed the Partition Plan for Palestine on 29 November 1947, envisaging the creation of separate Jewish and Arab states1.</li></ul><p><strong>1920s-1930s</strong>: Tensions and Violence Between Jewish and Arab Communities</p><ul><li>The intercommunal conflict in Mandatory Palestine was a civil, political, and armed struggle between Palestinian Arabs and Jewish Yishuv during the British rule in Mandatory Palestine1.</li><li>The conflict shifted from sectarian clashes in the 1920s and early 1930s to an armed Arab Rebellion against British rule in 19361.</li><li>During 1920, 1921, 1929, 1933, and from 1936 to 1939, Palestinian nationalist demonstrations led to violence2. Palestinians demanded that the British authorities halt further Jewish immigration into Palestine; that sale of Arab and government lands to Jews cease; and that immediate steps be initiated toward granting Arab Palestinian independence2.</li><li>The 1921 Jaffa riots were a significant event during this period. It was the first time since the Crusades that civilians in the Holy Land had experienced what would later be termed a mass-fatality incident3.</li><li>The massive violence of 1921 left an ineradicable impression on the Zionists, driving home the precariousness of their enterprise3.</li><li>The necessity of a strong defense began trickling into mainstream Zionist thought.</li></ul><p><strong>1939–1945</strong>: World War II<a href="https://www.britannica.com/topic/United-Nations"><strong>6</strong></a><a href="https://en.wikipedia.org/wiki/United_Nations"><strong>8</strong></a></p><ul><li>This conflict involved virtually every part of the world. The principal belligerents were the Axis powers — Germany, Italy, and Japan — and the Allies — France, Great Britain, the United States, the Soviet Union, and, to a lesser extent, China<a href="https://www.britannica.com/topic/United-Nations"><strong>6</strong></a>.</li></ul><p><strong>1945</strong>: Collapse of the League of Nations<a href="https://www.history.com/topics/world-war-i/world-war-i-history"><strong>1</strong></a></p><ul><li>The League effectively ceased operations during World War II<a href="https://www.history.com/topics/world-war-i/world-war-i-history"><strong>1</strong></a>.</li></ul><p><strong>1945</strong>: Formation of the United Nations<a href="https://www.ungeneva.org/en/about/league-of-nations/transition"><strong>11</strong></a><a href="https://www.pbs.org/wgbh/masterpiece/specialfeatures/world-war-ii-major-events-timeline/"><strong>12</strong></a><a href="https://www.bbc.com/news/world-49796807"><strong>14</strong></a></p><ul><li>The United Nations (UN) was established on October 24, 1945<a href="https://www.ungeneva.org/en/about/league-of-nations/transition"><strong>11</strong></a>. It was formed after World War II with the aim of maintaining international peace<a href="https://www.ungeneva.org/en/about/league-of-nations/transition"><strong>11</strong></a>.</li></ul><p><strong>1947</strong>: UN Resolution 181</p><ul><li>As the United Kingdom prepared to withdraw from the region, the United Nations passed a partition plan (known as UN Resolution 181) that would divide Palestine into a Jewish state and an Arab state, an idea originally proposed by the British government about a decade earlier.</li><li>The United Nations Partition Plan for Palestine was a proposal developed by the United Nations, which recommended a partition with Economic Union of Mandatory Palestine to follow the termination of the British Mandate.</li></ul><p><strong>November 1947</strong>: United Nations endorsement for the establishment of an independent Jewish State in Palestine</p><p><strong>14 May 1948</strong>: Proclamation of the State of Israel in Tel Aviv</p><ul><li>The region had been inhabited by various groups for several centuries.</li><li>The State of Israel was founded largely upon public land passed from the Ottoman Empire through the British Mandate to the newly founded Jewish State.</li><li>Only 30 percent of the land was privately owned by Jews and Arabs.</li><li>Some of those Arabs remained and became citizens of Israel.</li></ul><p>Source(s)</p><p>1. <a href="https://www.history.com/topics/world-war-i/world-war-i-history">World War I: Summary, Causes, Facts &amp; Dates | HISTORY</a></p><p>2. <a href="https://www.history.com/topics/world-war-i/league-of-nations">The League of Nations: Definition, WW1 &amp; Failure — HISTORY</a></p><p>3. <a href="https://www.britannica.com/topic/League-of-Nations">League of Nations | Definition &amp; Purpose | Britannica</a></p><p>4. <a href="https://www.britannica.com/event/World-War-II">World War II | Facts, Summary, History, Dates, Combatants, &amp; Causes …</a></p><p>5. <a href="https://www.usatoday.com/story/news/world/2022/09/16/when-was-world-war-2/8035788001/">When did World War II start? The deadliest international conflict …</a></p><p>6. <a href="https://www.britannica.com/topic/United-Nations">United Nations (UN) | Definition, History, Founders, Flag, &amp; Facts</a></p><p>7. <a href="https://www.un.org/en/about-us/history-of-the-un">History of the United Nations | United Nations — الأمم المتحدة</a></p><p>8. <a href="https://en.wikipedia.org/wiki/United_Nations">United Nations — Wikipedia</a></p><p>9. <a href="https://en.wikipedia.org/wiki/League_of_Nations">League of Nations — Wikipedia</a></p><p>10. <a href="https://www.thecanadianencyclopedia.ca/en/article/league-of-nations">Canada and the League of Nations | The Canadian Encyclopedia</a></p><p>11. <a href="https://www.ungeneva.org/en/about/league-of-nations/transition">Transition to the United Nations — UN GENEVA</a></p><p>12. <a href="https://www.pbs.org/wgbh/masterpiece/specialfeatures/world-war-ii-major-events-timeline/">World War II Major Events Timeline | Masterpiece — PBS</a></p><p>13. <a href="https://wwiifoundation.org/timeline-of-wwii/">Timeline of WWII — WWII Foundation</a></p><p>14. <a href="https://www.bbc.com/news/world-49796807">What is the United Nations and what does it do? — BBC</a></p><p>15. <a href="https://www.history.com/topics/stories/united-nations">United Nations — HISTORY</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2b0195ec754b" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Use example.gitignore in Drupal 10]]></title>
            <link>https://medium.com/@fullstackdev42/use-example-gitignore-in-drupal-10-1542145151ad?source=rss-3a69895f0db------2</link>
            <guid isPermaLink="false">https://medium.com/p/1542145151ad</guid>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[videos]]></category>
            <category><![CDATA[php]]></category>
            <category><![CDATA[tutorial]]></category>
            <dc:creator><![CDATA[Russell Jones]]></dc:creator>
            <pubDate>Wed, 15 Feb 2023 21:32:52 GMT</pubDate>
            <atom:updated>2023-02-15T21:32:52.046Z</atom:updated>
            <content:encoded><![CDATA[<p>Without a proper .gitignore Drupal will quickly enlarge your repository size into the gigabytes with temporary files.</p><p>Before we proceed any further we do some maintenance on our git repository by implementing the default Drupal .gitignore in our project.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FYnyiMhSS_QU%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DYnyiMhSS_QU&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FYnyiMhSS_QU%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/62574d6e2b2cae70fb25f12b1ec0c15e/href">https://medium.com/media/62574d6e2b2cae70fb25f12b1ec0c15e/href</a></iframe><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1542145151ad" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Debug Drupal Regions with CSS]]></title>
            <link>https://medium.com/@fullstackdev42/debug-drupal-regions-with-css-5000afe21370?source=rss-3a69895f0db------2</link>
            <guid isPermaLink="false">https://medium.com/p/5000afe21370</guid>
            <category><![CDATA[tutorial]]></category>
            <category><![CDATA[drupal]]></category>
            <category><![CDATA[webdev]]></category>
            <category><![CDATA[videos]]></category>
            <dc:creator><![CDATA[Russell Jones]]></dc:creator>
            <pubDate>Fri, 10 Feb 2023 05:40:06 GMT</pubDate>
            <atom:updated>2023-02-10T05:40:06.123Z</atom:updated>
            <content:encoded><![CDATA[<iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FBX-HxH3MhAw%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DBX-HxH3MhAw&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FBX-HxH3MhAw%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/df713fe8beb0e46b1686f13f0edb0459/href">https://medium.com/media/df713fe8beb0e46b1686f13f0edb0459/href</a></iframe><p>As part of the First Trillionaire website series I attempt to use our Tailwind CSS implementation to outline the regions with a loud red dashed border. But… my Tailwind installation fails and we revert to inline styles. We’ll call that mission accomplished!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5000afe21370" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Whalebrew]]></title>
            <link>https://medium.com/@fullstackdev42/whalebrew-9c3535b3c722?source=rss-3a69895f0db------2</link>
            <guid isPermaLink="false">https://medium.com/p/9c3535b3c722</guid>
            <category><![CDATA[docker]]></category>
            <dc:creator><![CDATA[Russell Jones]]></dc:creator>
            <pubDate>Thu, 25 Oct 2018 07:26:07 GMT</pubDate>
            <atom:updated>2018-10-25T07:26:07.555Z</atom:updated>
            <content:encoded><![CDATA[<h4>Docker Images as ‘Native’ Commands</h4><p>Ahnee! If you’re from the Mac World you’ve probably used, or at least heard of, <a href="https://brew.sh/">Homebrew</a>. For the uninformed, Homebrew is <em>The missing package manager for macOS. </em>Or more accurately it’s a package management system for macOS that’s comparable to Redhat’s <a href="http://rpm.org/">RPM</a>, Debian’s <a href="https://wiki.debian.org/Apt">APT</a>, and Window’s <a href="https://chocolatey.org/">Chocolatey</a>.</p><p>Package managers make installing software easy by automagically fetching a pre-compiled binary and its dependencies, then copying them into your $PATH.</p><p>Depending on the software, compiling from source code is often difficult and time-consuming. Package managers let you get on with the using the software.</p><h3>Installing With APT</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/734/1*MLwvtPEG0yoOEtCzml-R9Q.png" /><figcaption>figlet displays large characters made up of ordinary screen characters</figcaption></figure><p>I’ll demonstrate installing a package with APT in Ubuntu 18.10:</p><pre><strong>$</strong> sudo apt install figlet</pre><p>As you can see in the screenshot, APT downloads the figlet package (figlet_2.2.5–3_amd64.deb), unpacks it, then finally installs to /usr/bin/figlet.</p><pre><strong>$</strong> figlet &quot;p4ck4g3&#39;s 4 l1fe\!&quot;</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/734/1*XkvZZOmATGe8p6Ri2ZqOaA.png" /><figcaption>figlet in action</figcaption></figure><h3>I Whale Always Love You</h3><p>Whalebrew is an inevitable side effect of container proliferation. Their ease of use, speed, and low resource consumption make them ideal vehicles for single command or function execution.</p><p>As I’ve <a href="https://medium.com/@jonesrussell42/docker-for-legacy-drupal-development-6df4dec8b309#b965">previously written</a>, containers can be started, perform a task, then stopped in a matter of milliseconds. And that’s exactly what Whalebrew allows you to do in the form of Docker images aliased in your $PATH.</p><p>Now let’s put a magnifying glass up to Whalebrew by walking through its installation then “install a package”.</p><h3>Whalebrew Demonstration</h3><p>By creating an alias for running a Docker container and storing it in $PATH, running a command within a container is seamless and virtually indistinguishable from running a command directly in the environment.</p><p>What does that look like exactly? Assuming you already have <a href="https://medium.com/@jonesrussell42/docker-for-legacy-drupal-development-6df4dec8b309#db40">Docker installed</a>, we’ll start by installing Whalebrew (from <a href="https://github.com/bfirsh/whalebrew">https://github.com/bfirsh/whalebrew</a>):</p><pre><strong>$</strong> sudo curl -L &quot;https://github.com/bfirsh/whalebrew/releases/download/0.1.0/whalebrew-$(uname -s)-$(uname -m)&quot; -o /usr/local/bin/whalebrew; sudo chmod +x /usr/local/bin/whalebrew</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/734/1*EzjhwX8SPJ-Zlcjxiayt2A.png" /><figcaption>Whalebrew installed to /usr/local/bin/whalebrew</figcaption></figure><p>Now let’s install figlet again, but this time with Whalebrew:</p><pre><strong>$</strong> sudo whalebrew install whalebrew/figlet</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/734/1*bLCbFgBYsdCcLfeKnr2UpA.png" /><figcaption>whalebrew/figlet installed to /usr/local/bin/figlet</figcaption></figure><p>Now let’s run figlet again and adore the glorious results (We’ll use the full path in case the APT figlet is first in $PATH):</p><pre><strong>$</strong> /usr/local/bin/figlet &quot;It&#39;s a whale of a time\!&quot;</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/734/1*X8Eew1wrMcMjbw2-skNPGQ.png" /><figcaption>figlet as run in a Docker container</figcaption></figure><p>Tada! We’ve just run figlet from within a container. You may have noticed it took a bit longer to execute, depending on your computer’s <em>runtime juice</em>.</p><p>So what just happened? Before we wrap it up we’ll take a quick look under the hood and examine the difference between running a native binary and a Whalebrew command.</p><h3>Native vs. ‘Native’</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/799/1*zpAHqMDHdy4hqXN3fo1hAQ.jpeg" /><figcaption><a href="http://bibliodyssey.blogspot.com/2006/08/bodmer-series-on-native-america.html">Facsimile of an Indian Painting</a></figcaption></figure><p>Maazhichige, wrong ‘native’! The figlet program installed with APT is an ELF executable, the <a href="https://github.com/cmatsuoka/figlet">source code</a> compiled from C, and it runs directly on your system.</p><p>The Whalebrew alias looks like this:</p><pre><strong>$</strong> cat /usr/local/bin/figlet</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/734/1*zMYeFQLlnwjjhttXCnVGiw.png" /></figure><blockquote>When a package is executed, Whalebrew will run the specified image with Docker, mount the current working directory in /workdir, and pass through all of the arguments.</blockquote><p>And this is essentially what Whalebrew executes:</p><pre><strong>$</strong> docker run -it -v &quot;$(pwd)&quot;:/workdir -w /workdir whalebrew/figlet &quot;It&#39;s a whale of a time\!&quot;</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/734/1*lSmdCGIGlEE6KDWGBHfFMA.png" /></figure><p>And well, that’s it, move along. Baamaapii.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9c3535b3c722" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Docker for Legacy Drupal Development]]></title>
            <link>https://medium.com/@fullstackdev42/docker-for-legacy-drupal-development-6df4dec8b309?source=rss-3a69895f0db------2</link>
            <guid isPermaLink="false">https://medium.com/p/6df4dec8b309</guid>
            <category><![CDATA[tutorial]]></category>
            <category><![CDATA[drupal]]></category>
            <category><![CDATA[docker]]></category>
            <dc:creator><![CDATA[Russell Jones]]></dc:creator>
            <pubDate>Sun, 14 Oct 2018 02:14:03 GMT</pubDate>
            <atom:updated>2018-10-21T09:43:36.600Z</atom:updated>
            <content:encoded><![CDATA[<h4>Leveraging Linux containers for Migrating Drupal 6 to Drupal 8</h4><p>Ahnee. Let me start by saying this article/tutorial (artorial, tutarticle!?), this <em>artorial </em>could be titled “<strong>Docker for Development</strong>, <em>Leveraging Linux containers</em>” and be applied to virtually any stack you want.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*s-YgL1NW7evYyCBWI-7w8Q.png" /></figure><p>I’m using Drupal because I recently began a Drupal 6 (D6) to Drupal 8 (D8) website migration.</p><blockquote>Drupal is a free, open-source content management system (CMS) with a large, supportive community. It’s used by millions of people and organizations around the globe to build and maintain their websites.</blockquote><p>Both versions run on a LAMP stack but with different versions of PHP. D6 reached it’s end-of-life in early 2016, almost a year before PHP 7 was released. Consequently it requires PHP 5.6 and lower to run.</p><p><em>The folks at </em><a href="https://www.mydropwizard.com/blog/drupal-6-year-2020-and-php-7-support"><em>myDropWizard.com</em></a><em> are bravely supporting D6 until the cows come home, props to them! I have no affiliation with them, I’m just thunderstruck by their </em><a href="https://www.mydropwizard.com/blog/drupal-6-2019-yes-really"><em>level of commitment</em></a><em>.</em></p><p>According to the docs D8 will run on PHP 5.5.9+, but any version less than 7.1 is <a href="https://www.drupal.org/docs/8/system-requirements/php-requirements#php_required">not recommended</a>. <strong>If running Drupal 8 on PHP 5.6 you go, only pain will you find</strong>.</p><p>So how do you run PHP 5 and PHP 7 simultaneously on the same host? Spin up a pair of VMs? <a href="https://www.tecmint.com/install-different-php-versions-in-ubuntu/">Slip in Nginx and PHP-FPM alongside Apache</a>? The former option is acceptable. The latter borders on sadomasochism.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/244/1*4jh-4MnN2NkYxWZVOKBklw.jpeg" /><figcaption>And there is, Kevin!</figcaption></figure><p>The answer is, of course, Docker.</p><h3>This Guy’s Setup</h3><p>I use Linux as my primary Operating System (OS). Ubuntu 18.04 loaded with the latest packages of Apache 2.4, MySQL 5.7, and PHP 7.2 from Ubuntu’s official repositories.</p><h4>Drupal 8</h4><p>My Ubuntu host is similar enough to the production environment where D8 is to be deployed that I created an Apache Virtual Host (vhost) and MySQL database then <a href="https://www.drupal.org/docs/develop/using-composer/using-composer-to-manage-drupal-site-dependencies#download-core-option-a">downloaded D8 using a composer template</a> and installed it with <a href="https://docs.drupalconsole.com/en/commands/site-install.html">Drupal Console</a>.</p><blockquote>What is the Drupal Console? The Drupal CLI. A tool to generate boilerplate code, interact with and debug Drupal. From the ground up, it has been built to utilize the same modern PHP practices which were introduced in Drupal 8.</blockquote><h4>Drupal 6</h4><p>This is where the fun begins. But first I’ll explain the differences between a VM and a Container.</p><h3>VMs and Containers Compared</h3><h4>VM</h4><p>There are many VM providers. <a href="https://www.virtualbox.org/">VirtualBox</a>, <a href="https://www.qemu.org/">QEMU</a>, and <a href="https://www.vmware.com/">VMWare</a> to name a few. A VM contains a full OS and <a href="https://en.wikipedia.org/wiki/Kernel_(operating_system)">kernel</a> running in isolation (so lonely) from the host. It is indistinguishable from a proper desktop or server.</p><p>Before booting, VMs are allocated resources such as RAM and CPU cores. The VM provides a hardware emulation layer between the guest OS and the host, which looks and feels like bare metal as far as the guest OS is concerned.</p><p>Because they resemble physical desktops and servers, VMs require significant amounts of the host’s system resources. In contrast to Containers this severely limits the amount of VMs that can run concurrently on a single host. The boot-up and shutdown time is also the same as a physical machine; another significant difference.</p><h4>Containers</h4><p>Containers offer the advantages of VMs without the overhead. By virtualizing at the kernel level containers share resources with the host. Many more containers can run simultaneously on a single machine compared to VMs.</p><p>Containers worry more about resource prioritization rather than resource allocation. In other words, a container says “When will you run this process for me niijikiwenh?” rather than “How much CPU do I have to run this process?”.</p><p>Finally, starting up or shutting down a Container is super fast <em>*whoooooosh*</em>. Because Containers share a fully loaded kernel with the host, they can be started, perform a task, then shut down within milliseconds. Containers are the mayflies of the tech world. On the flip side, they can last until an act of God brings them down along with your house.</p><h4>Docker</h4><p>I messed with Docker years ago but only recently gave it a prime time slot in my regularly scheduled programming.</p><p>Docker makes it easier to create, deploy, and run an application in a lightweight and portable Container by packaging it up with it’s dependencies and shipping them out as an image.</p><p>I’ve only skimmed the surface of Docker and don’t fully understand how it works under the hood. I’m also anxious to check out a competitor such as <a href="http://www.ubuntu.org.cn/cloud/lxd">Canonical’s LXD</a> or <a href="https://coreos.com/rkt/">CoreOS/Redhat’s Rkt</a>. All in good time.</p><h4>Docker Images</h4><p>Docker loads an image containing an OS and the software needed to do a job into a container. In other words, an image contains your applications runtime environment.</p><p>Creating an image is rather painless, depending on the complexity of your requirements. You write a set of instructions in YAML saved as a Dockerfile, then run docker build. Our tutorial requirements are simple and can be met with pre-existing images pulled from <a href="https://hub.docker.com/">Docker Hub</a>, a Docker image registry service.</p><p>While I can find an image which contains Apache, PHP, and MySQL all together, we’re going to follow <a href="https://devops.stackexchange.com/questions/447/why-it-is-recommended-to-run-only-one-process-in-a-container">best practices</a> and separate the web server from the database into 2 containers where they will communicate through an internal subnet created by Docker.</p><h4>Persisting Data</h4><p>Finally, containers are designed to be disposable, with the ability to run as a single instance on a single host, or to be scaled as multiple instances distributed over server clusters. By default, data is written to a containers writable layer and will be disposed of along with the container.</p><p>Volumes and Bind Mounts are Dockers two options for persisting data. I can, and maybe will, write an entire post to fully explain them. But to keep it brief I will say Volumes are managed by Docker, isolated from the host, can be mounted into multiple containers, and stored on remote hosts or in a cloud provider.</p><p>Bind Mounts are a file or directory on the host machine mounted into a container. They are a good option to share configuration data, source code, and build artifacts during development. In production, your build artifacts are best copied directly into the image, configuration in the environment, and source code unnecessary.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/740/1*W49kEOLhKZTuC9DmRKD6Qg.png" /></figure><p>Volumes are recommended for storing data used and generated by containers. Bind mounts depend on the host machine’s directory structure, hampering container portability.</p><p>In this tutorial we will get by with a bind mount.</p><h3>Summary</h3><p>That’s Docker so far as I understand it. I hope you find it beneficial and are encouraged to begin developing with Docker. I invite you to join in on the fun below and follow the step-by-step instructions to get down and dirty with Docker.</p><h3>Tutorial</h3><p>Let’s setup Drupal 6 within containers in Ubuntu. If you are not using Ubuntu don’t fret, the only step you need to change is “Install Docker”. In that case refer to <a href="https://docs.docker.com/install/#supported-platforms">https://docs.docker.com/install/#supported-platforms</a> for instructions to install Docker on your OS.</p><p>If you catch any mistakes or see room for improvement please contact me. Otherwise, wacka wacka.</p><h4>Prerequisites</h4><p>sudo (or root) — Required to install and run Docker. To run docker commands without sudo or root you must add your user account to the <em>docker</em> group.</p><h4>Table of Contents</h4><ol><li>Install Docker</li><li>Add user to docker group</li><li>Start Docker</li><li>Pull MySQL image</li><li>Start container</li><li>Download Drupal 6</li><li>Pull Apache/PHP image</li><li>Enable mod_rewrite</li><li>Allow Overrides</li><li>Start container with a bind mount</li><li>Install Drupal</li><li>Cleanup</li></ol><p>Biminizha’.</p><h4>Install Docker</h4><p>Open a terminal and ensure your package lists are up to date then install Docker (aka Docker Engine):</p><pre>$ sudo apt update<br>$ sudo apt install docker.io -y</pre><p><em>Output:</em></p><pre>&lt;heaps of output&gt;<br>Processing triggers for systemd (237-3ubuntu10.3) ...</pre><p>Docker Engine is comprised of three major components:</p><ul><li><em>dockerd</em> (Server) — a daemon that is a long-running background process</li><li><em>docker</em> (Client) — a command line interface</li><li>REST API — specifies interfaces that programs can use to communicate with the daemon</li></ul><h4>Start Docker</h4><p>Kick-start the aforementioned long-running background process:</p><pre>$ sudo systemctl start docker</pre><p>Optionally, tell <em>systemd</em> to start docker on system boot:</p><pre>$ sudo systemctl enable docker</pre><p>Docker is now installed and ready for use. Check if docker is running:</p><pre>$ systemctl is-active docker</pre><p><em>Output:</em></p><pre>active</pre><h4>Pull MySQL image</h4><p>Now that you have docker running you can pull your first image. Start with <a href="https://hub.docker.com/r/mysql/mysql-server/">MySQL</a> version 5.6 (without <em>:5.6</em> specified, :<em>latest</em> is implied):</p><pre>$ sudo docker pull mysql:5.6</pre><p><em>Output:</em></p><pre>5.6: Pulling from library/mysql<br>802b00ed6f79: Pull complete <br>30f19a05b898: Pull complete <br>3e43303be5e9: Pull complete <br>94b281824ae2: Pull complete <br>51eb397095b1: Pull complete <br>3f6fe5e46bae: Pull complete <br>b5a334ca6427: Pull complete <br>115764d35d7a: Pull complete <br>719bba2efabc: Pull complete <br>284e66788ee1: Pull complete <br>0f085ade122c: Pull complete <br>Digest: sha256:4c44f46efaff3ebe7cdc7b35a616c77aa003dc5de4b26c80d0ccae1f9db4a372<br>Status: Downloaded newer image for mysql:5.6</pre><h3>Start MySQL</h3><p>Start the DB container, options are explained below:</p><pre>$ sudo docker run -d \<br>--name=&quot;drupal-mysql&quot; \<br>-e MYSQL_ROOT_PASSWORD=drupalroot \<br>-e MYSQL_DATABASE=drupal6 \<br>-e MYSQL_USER=drupal \<br>-e MYSQL_PASSWORD=drupal6pass \<br>mysql:5.6</pre><ul><li>-d — Start the container as a background process.</li><li>--name —Will be referenced during Drupal install. A random name will be assigned if one isn’t provided.</li><li>-e — Set’s an environment variable. MySQL will be configured with <a href="https://hub.docker.com/_/mysql/">values passed in</a> by the environment.</li></ul><p><em>Output (will differ):</em></p><pre>de99c912e3fbeb4f113889c145b5fab82787259c21d51962c9186e90c27d2857</pre><h4>Download Drupal 6</h4><p>D6 is available for download from the official Drupal site packaged as a gzipped tarball. You can grab it with wget:</p><pre>$ cd ~<br>$ wget <a href="https://ftp.drupal.org/files/projects/drupal-6.38.tar.gz">https://ftp.drupal.org/files/projects/drupal-6.38.tar.gz</a><br>$ tar -xzf drupal-6.38.tar.gz</pre><p>Verify drupal-6.38 exists in your home directory:</p><pre>$ if test -d ~/drupal-6.38; then echo “It exists”; fi</pre><p><em>Output:</em></p><pre>It exists</pre><h4>Pull Apache/PHP image</h4><p>Now pull a docker image of Ubuntu 14.04 LTS with Apache 2, PHP 5, and Composer from <a href="https://hub.docker.com/r/nimmis/apache-php5/:">https://hub.docker.com/r/nimmis/apache-php5/:</a></p><pre>$ sudo docker pull nimmis/apache-php5</pre><p><em>Output:</em></p><pre>Using default tag: latest<br>latest: Pulling from nimmis/apache-php5<br>c2c80a08aa8c: Pull complete <br>6ace04d7a4a2: Pull complete <br>f03114bcfb25: Pull complete <br>99df43987812: Pull complete <br>9c646cd4d155: Pull complete <br>5c017123b62e: Pull complete <br>8f95d9abec41: Pull complete <br>c46de42c66c3: Pull complete <br>9a19620cecad: Pull complete <br>5c62abdf642f: Pull complete <br>Digest: sha256:712d35d5cc30e6a911e260e871f08f77d5684edcc50cba21163535714c547ff5<br>Status: Downloaded newer image for nimmis/apache-php5:latest</pre><h4>DocumentRoot and Incoming Port</h4><p>The containerized Apache’s default DocumentRoot is /var/www/html, which we will bind mount to the D6 files in ~/drupal-6.38.</p><p>Because I already have Apache on the host I have to bind the container’s port 80 to something else. I’m using 10080 but you can choose almost any other free port.</p><pre>$ sudo docker run -d  \<br>-p 10080:80 \<br>-v ~/drupal-6.38:/var/www/html \<br>--name=&quot;drupal-app&quot; \<br>--link=&quot;drupal-mysql&quot; \<br>nimmis/apache-php5</pre><p><em>Output:</em></p><pre>0398890ab8e0a082f68373c8e7fd088e925f9bac0eca178399b883091919ee77</pre><p>An explanation of what’s between run and nimmis/apache-php5:</p><ul><li>-d — Daemonize, run in background.</li><li>-p 10080:80 — Bind host port 10080 to container port 80.</li><li>-v ~/drupal-6.38:/var/www/html — Bind host directory to container directory.</li><li>— name=&quot;drupal-app&quot; — Name the container instance for convenience.</li><li>--link=&quot;drupal-mysql&quot; — Link to the MySQL container so Drupal can communicate with the database.</li></ul><h4>Install Drupal</h4><p>Open <a href="http://localhost:10080/">http://localhost:10080</a> in a browser (<em>xdg-open is a program that will open a file or URL in the preferred application as set in your OS</em>):</p><pre>$ xdg-open <a href="http://localhost:10080/">http://localhost:10080</a></pre><p>Tada! The Drupal 6 installation page should be open in a browser, served from within a set of Docker containers.</p><p>To complete the installation use the database name (<em>drupal6</em>), username (<em>drupal</em>), and password (<em>drupal6pass</em>) as set in the <em>Start MySQL</em> step. Under <em>Advanced Options</em>, set the <em>Database host</em> to the name of your MySQL container, <em>drupal-mysql</em>.</p><h3>Cleanup</h3><p>When you have finished with Drupal 6 shut down the containers and delete them from the host.</p><p>Stop the containers:</p><pre>$ sudo docker container stop drupal-app drupal-mysql</pre><p><em>Output:</em></p><pre>drupal-app<br>drupal-mysql</pre><p>Remove the containers:</p><pre>$ sudo docker container rm drupal-app drupal-mysql</pre><p><em>Output:</em></p><pre>drupal-app<br>drupal-mysql</pre><p>Verify the containers have been deleted:</p><pre>$ sudo docker container ls</pre><p>That’s it, move along. Baamaapii.</p><h3>Bonus: <em>docker</em> group</h3><p>To display a list of groups you belong to is simple:</p><pre>$ group</pre><p><em>Output:</em></p><pre>roosta adm cdrom sudo dip plugdev lpadmin sambashare</pre><p>Add your user account to the <em>docker</em> group:</p><pre>$ sudo usermod -aG docker $USER</pre><p>You must log out then log back in before it takes effect.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6df4dec8b309" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Scaffold and Deploy a Jekyll GitHub Pages Blog in 5 Minutes]]></title>
            <link>https://medium.com/@fullstackdev42/scaffold-and-deploy-a-jekyll-github-pages-blog-in-5-minutes-356a20793149?source=rss-3a69895f0db------2</link>
            <guid isPermaLink="false">https://medium.com/p/356a20793149</guid>
            <category><![CDATA[github]]></category>
            <category><![CDATA[static-websites]]></category>
            <category><![CDATA[jekyll]]></category>
            <dc:creator><![CDATA[Russell Jones]]></dc:creator>
            <pubDate>Sat, 29 Sep 2018 23:37:06 GMT</pubDate>
            <atom:updated>2018-09-29T23:38:49.564Z</atom:updated>
            <content:encoded><![CDATA[<p>Ahnee! Static websites have made a comeback. Innovations in content generation, the adoption of Markdown in workflows, deployment technology, and free hosting have made static websites an attractive option for those who don’t need the capabilities of a framework or content management system.</p><p><a href="https://jekyllrb.com/">Jekyll</a> is a static site generator that made a big splash in the world of static website generation. And GitHub has become the defacto standard in social coding, with <a href="https://pages.github.com/">GitHub Pages</a> offered as an attractive option for free static website hosting.</p><blockquote>Jekyll is a blog-aware static site generator in Ruby</blockquote><h3>My experience in static</h3><p>18 years ago, in my first job as a web developer, we generated and maintained static websites. The shop I worked for built an in-house Perl templating “engine” which recursively crawled a directory looking for files with a custom file extension to parse.</p><p>These files contained content in the form of HTML and XML-esque tags which were essentially variables that set the active section in the navigation, helped generate breadcrumbs, figure out which shared content blocks to display in the sidebars, etc… The meat of each file was the content for the page being generated. Using regex, the contents of a master template was then populated with the contents of the parsed files then output into an html file.</p><p>The websites were generally 100+ pages and the engine wasn’t great. There was no easy way to generate a single page, or a subset of pages. And it was slow. We would inevitably edit the HTML files directly when doing maintenance work. Site-wide changes ended up being a scary Perl regexp which ran independently of the engine, and our master template would quickly become obsolete.</p><p>Today we have much better tooling. Written in Ruby, Jekyll is arguably the most popular static site generator.</p><h3>Why develop a static website?</h3><p>Why indeed. I can think of a few pros to creating and maintaining a static website.</p><ul><li><strong>No server side programming required</strong><br>Creating a website usually begins with a framework. The most popular software for creating websites today is Wordpress. Written in PHP, WP began as a blogging platform but has since progressed to a full fledged Content Management System. A WordPress website requires a server which supports PHP, which you can setup yourself or pay a hosting provider like <a href="https://wordpress.com/">https://wordpress.com/</a>. It’s definitely possible to create a WordPress website without knowing PHP, but to customize your site, you will eventually have to get your hands dirty with a bit of coding.</li><li><strong>Your website will be fast</strong><br>A static web page is written in HTML and is served by a web server such as Apache or Nginx. Because the HTML document does not require any additional processing, it is served directly to the browser with minimal effort on the web servers part. Web servers such as Nginx are optimized for serving static assets, resulting in web pages which load near instantaneously.</li><li><strong>Search engines favor fast web pages<br></strong>Google provides us with guidelines for Search Engine Optimization. In 2012, Google revealed that speed is a factor in rankings.</li></ul><h3>Tutorial</h3><p>Enough talk, let’s get down to generating our new site.</p><h4>Pre-requisites</h4><ul><li>Terminal (a command-line) — <a href="https://linuxconfig.org/how-to-open-a-terminal-on-ubuntu-bionic-beaver-18-04-linux">How to open Terminal on Ubuntu Bionic Beaver 18.04 Linux</a></li><li>RubyGems — <a href="https://github.com/rvm/ubuntu_rvm">RVM package for Ubuntu</a></li><li>Git — <a href="https://www.digitalocean.com/community/tutorials/how-to-install-git-on-ubuntu-18-04">How To Install Git on Ubuntu 18.04</a></li><li>A GitHub account — <a href="https://github.com/join">Join GitHub</a></li></ul><p>Installing ‘gem’ and ‘git’ is out of the scope of this tutorial but the links provided above are great for Ubuntu 18.04. Drop me a line or comment below if you need help.</p><h4>Create and Preview Your Site</h4><p>To kick off, first you need to open a terminal and install the Jekyll ruby gem:</p><blockquote>$ gem install bundler jekyll</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/752/1*o-WMlkQ2Cra6pT0O8HSeVQ.png" /></figure><p>Use jekyll to generate your awesome new site:</p><blockquote>$ jekyll new my-awesome-site</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/752/1*fphO0ihPGqX8UZ8B_P-pdg.png" /></figure><p>If all went well you can use jekyll to preview your new site:</p><blockquote>$ cd my-awesome-site<br>$ bundle exec jekyll serve</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/752/1*TGha9u_EC39odTSBF4nETQ.png" /></figure><blockquote>Point your browser to <a href="http://localhost:4000/">http://localhost:4000</a>.</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*iaupqu3_PhnF1iRCDlYZng.png" /></figure><blockquote>When you are finished previewing press Ctrl-C to shut down the preview server.</blockquote><h3>Deploy to GitHub Pages</h3><p><a href="https://pages.github.com/">GitHub Pages</a> is an excellent FREE web hosting service for your GitHub repositories.</p><blockquote>Websites for you and your projects.<br>Hosted directly from your GitHub repository. Just edit, push, and your changes are live.</blockquote><h4>Create a New Repository</h4><p>A repository (or repo for short) is a place to manage a project and track changes to project files over time.</p><blockquote>Visit <a href="https://github.com/new">https://github.com/new</a></blockquote><blockquote>Under “Repository name” type “my-awesome-site”</blockquote><blockquote>Optionally fill in a “Description”:</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*n_waIDZ75IoaJxPdNvD0EA.png" /></figure><p>Leave “Public” selected (“Private” repos are only available with paid GitHub plans), and leave all other options as is.</p><blockquote>To continue, click “Create repository”. When your repo is created you will see this screen:</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Fibe17D9cKelwO2amQP0ag.png" /></figure><p>You now have an empty repo and may continue with configuration.</p><h4>Configure Repository for GitHub Pages</h4><p>To link your repository to GitHub Pages you must specify which branch will be published.</p><p>A <a href="https://git-scm.com/book/en/v1/Git-Branching-What-a-Branch-Is">git branch</a> is essentially a series of snapshots of your code over time. Branching allows you, or multiple users, to modify code in an isolated work area that doesn’t affect other branches or the project as a whole.</p><p>For the purpose of this tutorial we will assign the “master” branch to be published.</p><blockquote>From your “my-awesome-site” repository page click the “Settings” tab which brings you to <a href="https://github.com/jonesrussell/my-awesome-site/settings">https://github.com/<em>username</em>/my-awesome-site/settings</a>.</blockquote><blockquote>Scroll down to “GitHub Pages” where you will see “Source” with a drop-down set to “None”.</blockquote><blockquote>Click the drop-down and select “master branch”:</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*uGIFFtwSc7L0-QnmKAXORA.png" /></figure><blockquote>With “master branch” selected, click “Save”.</blockquote><p>Once saved scroll back down to see the message “Your site is ready to be published at <a href="https://jonesrussell.github.io/my-awesome-site/">https://<em>username</em>.github.io/my-awesome-site/</a>.”</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*MQwnvC6Inb93zlev6ZuYRQ.png" /></figure><p><strong>Configure your Gemfile</strong></p><p>Gemfiles are used by Ruby to set the dependencies required to properly build a Ruby Gem. A Gemfile was automatically generated by Jekyll in the previous steps.</p><p>You must update your Gemfile to instruct GitHub to build your gem for deployment to GitHub Pages.</p><p>Use whichever editor you are comfortable with but here I’m using “vim”:</p><blockquote>$ vim Gemfile</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/752/1*Bh6_5s7-bqE7CAfAK-HyNw.png" /></figure><p>Our changes are straight-forward, simply comment out (append the line with #):</p><blockquote>gem “jekyll”, “~&gt; 3.8.4” (line 11 in the above screenshot; 3.8.4 is the version at the time of writing and may have changed by now)</blockquote><p>and un-comment:</p><blockquote># gem “github-pages”, group: :jekyll_plugins (line 18)</blockquote><p>Your Gemfile should now look like the screenshot below. A ‘#’ has been appended to line 11, and the ‘#’ has been removed from the beginning of line 18.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/752/1*9mMkQCJzxLCmXL_I5yfm1g.png" /></figure><p>Now Save and close the Gemfile (instructions for vim):</p><blockquote>:wq</blockquote><p><strong>Update _config.yml</strong></p><p>_config.yml contains variables specific to your website. Before you deploy you may want to set the title and description, and possibly your Twitter and GitHub usernames.</p><p>You must set the baseurl to ensure URLs are generated correctly, otherwise your assets and page links will not work.</p><blockquote>$ vim _config.yml</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/752/1*9UEZoWCCdQYb4_ah0aXFKw.png" /></figure><p>Make whatever edits you like, but be sure to edit the “baseurl” (line 22) so it reads:</p><blockquote>baseurl: “/my-awesome-site” # the subpath of your site, e.g. /blog</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/752/1*wku2TAwAraDwe4GCoxINHg.png" /></figure><p>Save and close.</p><blockquote>:wq</blockquote><p><strong>Commit Your Site Files</strong></p><p>You have your site files, configured for GitHub Pages, and you have an empty GitHub repository named “my-awesome-site”.</p><p>The next step is to “check-in” your files to the repo (replace <em>username</em> with your GitHub username):</p><blockquote>$ git init<br>$ git add .<br>$ git commit -m “first commit”<br>$ git remote add origin <a href="https://github.com/jonesrussell/my-awesome-site.git">https://github.com/username/my-awesome-site.git</a><br>$ git push -u origin master</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/741/1*XFr7LjpYyynfAapn9UnKlw.png" /></figure><blockquote>Verify your files have been published to GitHub by visiting <a href="https://github.com/jonesrussell/my-awesome-site">https://github.com/<em>username</em>/my-awesome-site</a>:</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*550RFFagQa4dtiXMZkZfdw.png" /></figure><p><strong>Tada! Visit your site</strong></p><p>When you committed your files to the repository, GitHub automagically built a set of HTML files and deployed to GitHub pages.</p><blockquote>Verify your blog is deployed by visiting <a href="https://jonesrussell.github.io/my-awesome-site/">https://username.github.io/my-awesome-site/</a>.</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*lP_yQX0QSLepJ29IenSFjQ.png" /></figure><h3>Conclusion</h3><p>You are now initiated into the world of Jekyll and GitHub Pages. To create a new blog post, add a new file to the “_posts” directory and check it into your repo. Be sure to examine the default post and stick to it’s naming convention and the template it uses within. Once checked in visit your site and your new post should appear in the homepage list.</p><p>I hope this post was helpful, drop me a line or comment with any questions, corrections, or just to say Ahnee!</p><p>Gabekana!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=356a20793149" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>