<?xml version="1.0" encoding="utf-8" standalone="yes" ?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Technology on Home of Jeremy Olexa</title>
    <link>https://blog.jolexa.net/categories/technology/</link>
    <description>Recent content in Technology on Home of Jeremy Olexa</description>
    <generator>Hugo -- gohugo.io</generator>
    <language>en-us</language>
    <copyright>&amp;copy; Copyright 2008-2016 | jolexa.net</copyright>
    <lastBuildDate>Sun, 27 Dec 2015 02:41:45 +0000</lastBuildDate>
    <atom:link href="https://blog.jolexa.net/categories/technology/index.xml" rel="self" type="application/rss+xml" />
    
    <item>
      <title>Migrate to Hugo from Wordpress</title>
      <link>https://blog.jolexa.net/post/migrate-to-hugo-from-wordpress/</link>
      <pubDate>Sun, 27 Dec 2015 02:41:45 +0000</pubDate>
      
      <guid>https://blog.jolexa.net/post/migrate-to-hugo-from-wordpress/</guid>
      <description>

&lt;p&gt;I have now liberated myself away from Wordpress. Launching new site today, now.
This site has substantial archetechure changes compared to the old one.&lt;/p&gt;

&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;&lt;/th&gt;
&lt;th&gt;Old Blog&lt;/th&gt;
&lt;th&gt;New Blog&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;

&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Software&lt;/td&gt;
&lt;td&gt;Wordpress&lt;/td&gt;
&lt;td&gt;&lt;a href=&#34;http://gohugo.io&#34;&gt;Hugo&lt;/a&gt;&lt;/td&gt;
&lt;/tr&gt;

&lt;tr&gt;
&lt;td&gt;Hosting&lt;/td&gt;
&lt;td&gt;Linode&lt;/td&gt;
&lt;td&gt;Amazon S3&lt;/td&gt;
&lt;/tr&gt;

&lt;tr&gt;
&lt;td&gt;Deployment&lt;/td&gt;
&lt;td&gt;Maintain software stack, CMS&lt;/td&gt;
&lt;td&gt;Soon to be automated&lt;/td&gt;
&lt;/tr&gt;

&lt;tr&gt;
&lt;td&gt;Source Control&lt;/td&gt;
&lt;td&gt;None&lt;/td&gt;
&lt;td&gt;&lt;a href=&#34;https://github.com/jolexa/blog.jolexa.net&#34;&gt;GitHub&lt;/a&gt;&lt;/td&gt;
&lt;/tr&gt;

&lt;tr&gt;
&lt;td&gt;Editor&lt;/td&gt;
&lt;td&gt;Web App&lt;/td&gt;
&lt;td&gt;Any editor, just text files. Markdown format&lt;/td&gt;
&lt;/tr&gt;

&lt;tr&gt;
&lt;td&gt;Security&lt;/td&gt;
&lt;td&gt;Self Secured (PHP based app)&lt;/td&gt;
&lt;td&gt;Static Files, protect the AWS keys, etc&lt;/td&gt;
&lt;/tr&gt;

&lt;tr&gt;
&lt;td&gt;Time to maintain&lt;/td&gt;
&lt;td&gt;Relatively lots&lt;/td&gt;
&lt;td&gt;Relatively Zero&lt;/td&gt;
&lt;/tr&gt;

&lt;tr&gt;
&lt;td&gt;Optimization, CDN, Speed&lt;/td&gt;
&lt;td&gt;Self optimization from single point&lt;/td&gt;
&lt;td&gt;CloudFlare fronted, AWS SLA, small files, less moving parts&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;

&lt;h2 id=&#34;why-switch:c2f4953c1296299f8deb57c9b59f973b&#34;&gt;Why switch?&lt;/h2&gt;

&lt;p&gt;I know static site generators are the new fashion now-days. Whether the site is
hosted on GitHub Pages, Amazon S3, or self hosted, it is just simpler to
maintain. This is most advantageous to me, as I don&amp;rsquo;t have a desire to tinker
with a server anymore (or time). Hosting my own server was fun and provided much
background context that helped me with the beginning of my career. Now that
context is there and more context is needed around the next generation of
services. Another big point is security, having a Web/PHP/MySQL stack exposed to
the internet is eventually going to be trouble if not maintained. A minor point
is cost, but this blog should cost me less than 1 USD per month, so ~90% cost
reduction.&lt;/p&gt;

&lt;h2 id=&#34;why-hugo:c2f4953c1296299f8deb57c9b59f973b&#34;&gt;Why Hugo?&lt;/h2&gt;

&lt;p&gt;There are &lt;a href=&#34;https://www.staticgen.com/&#34;&gt;many static site generators&lt;/a&gt; out there
but I picked Hugo because of a few reasons. The main reason was that it was
written in &lt;a href=&#34;https://golang.org/&#34;&gt;Go&lt;/a&gt; and I&amp;rsquo;m betting that I will desire some Go
experience in my future. (Buzzword: Microservices). In addition, the theme
engine seems pretty good to me. I was able to fork a theme and get immediate
feedback on the changes I was making, this is fun since now I can extend my own
themes and make modification on the fly. This current theme is a
&lt;a href=&#34;https://github.com/jolexa/vienna/tree/blog.jolexa.net&#34;&gt;fork&lt;/a&gt; of another
project.&lt;/p&gt;

&lt;h2 id=&#34;how:c2f4953c1296299f8deb57c9b59f973b&#34;&gt;How?&lt;/h2&gt;

&lt;p&gt;There are a bunch of tools out there, especially since Wordpress is such a
popular platform. I&amp;rsquo;m not going to rehash it here, but essentially it was:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Convert from Wordpress to Jekyll format (the Hugo tool didn&amp;rsquo;t work out of the
box)&lt;/li&gt;
&lt;li&gt;Convert from Jekyll to Hugo (built in to Hugo)&lt;/li&gt;
&lt;li&gt;Hack on theme, make small data mods, rebuild, push to S3, repeat until happy&lt;/li&gt;
&lt;li&gt;Change CloudFlare DNS to S3 bucket&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;I picked CloudFlare because it should save me money with the caching it
provides. It also seemed like the easiest way for me to enforce https, though
the CloudFront method didn&amp;rsquo;t seem that hard either. CloudFlare provides
&amp;ldquo;Universal SSL&amp;rdquo; for free and basically obsoletes the personal management of a
SSL certificate, which is good for me.&lt;/p&gt;

&lt;h2 id=&#34;future:c2f4953c1296299f8deb57c9b59f973b&#34;&gt;Future&lt;/h2&gt;

&lt;p&gt;This &lt;em&gt;platform&lt;/em&gt; that I have created for myself has me excited for the ease of use
and the results it provides. In the future, I will document my use of AWS Lambda
to update the content every time I do a &lt;code&gt;git push&lt;/code&gt; - which means I will have
complete server-less delivery using extremely applicable technologies in modern
software.&lt;/p&gt;
</description>
    </item>
    
  </channel>
</rss>