<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Static-Site on The Infinite Unknown</title>
    <link>https://www.jaredwatkins.com/tags/static-site/</link>
    <description>Recent content in Static-Site on The Infinite Unknown</description>
    <generator>Hugo -- gohugo.io</generator>
    <language>en-us</language>
    <lastBuildDate>Mon, 25 Feb 2013 00:00:00 +0000</lastBuildDate><atom:link href="https://www.jaredwatkins.com/tags/static-site/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Blog Relaunch - All the Cool Kids Are Going Static</title>
      <link>https://www.jaredwatkins.com/posts/2013/02/blog-relaunch-all-the-cool-kids-going-static/</link>
      <pubDate>Mon, 25 Feb 2013 00:00:00 +0000</pubDate>
      <author>Jared Watkins</author>
      <guid>https://www.jaredwatkins.com/posts/2013/02/blog-relaunch-all-the-cool-kids-going-static/</guid>
      <description>&lt;p&gt;I&amp;rsquo;ve run my own hosted server for many years now. Originally it was just to have my own mail server
but later I decided to start the blog using &lt;a href=&#34;http://wordpress.org/&#34;&gt;Wordpress&lt;/a&gt;.  It&amp;rsquo;s great to have the control and
flexibility to do whatever you want with a server.. but there are definitely some downsides
as well.  Wordpress is great.. but there are constant security issues to worry about and
people attacking your server trying to hack it with automated tools. Customizing it has
also never exactly been easy.. and it&amp;rsquo;s a huge code base that I don&amp;rsquo;t really understand.&lt;/p&gt;
&lt;p&gt;So this new version of the blog is far enough along that it was time to turn it lose.&lt;/p&gt;
&lt;p&gt;It&amp;rsquo;s built on a framework called &lt;a href=&#34;http://octopress.org/&#34;&gt;Octopress&lt;/a&gt; / &lt;a href=&#34;http://jekyllrb.com/&#34;&gt;Jekyll&lt;/a&gt; which is written in &lt;a href=&#34;http://www.ruby-lang.org/en/&#34;&gt;Ruby&lt;/a&gt;. I don&amp;rsquo;t know ruby
but it&amp;rsquo;s similar to perl and this framework is very lightweight and fairly easy to understand.. which is nice.
The ruby code lives on my laptop at home.. far away from the barbarian hordes. It generates
the complete blog website as static html files that are then pushed out to remote web servers.
The web servers don&amp;rsquo;t need to run any sort of dynamic code and so can be secured more easily
and the pages load much more quickly.&lt;/p&gt;
&lt;p&gt;This change alone would have been enough to justify the migration.. but since I&amp;rsquo;m now working for Amazon Web Services
I decided to kick it up a notch.  So now I&amp;rsquo;m hosting this blog using &lt;a href=&#34;http://aws.amazon.com/s3/&#34;&gt;CloudFront&lt;/a&gt; and &lt;a href=&#34;http://aws.amazon.com/cloudfront/&#34;&gt;S3&lt;/a&gt; storage.
The workflow goes like this&amp;hellip; When I write a new posting the entire site is regenerated and pushed to a
test system I use to preview the results. Once I&amp;rsquo;m happy the files get pushed from my laptop
to &lt;a href=&#34;http://aws.amazon.com/cloudfront/&#34;&gt;S3&lt;/a&gt;.. then CloudFront kicks in and distributes the
site from there to a fleet of Amazon servers all over the world. No matter where you are&amp;hellip; you are
routed to the nearest server to you on the internet. That makes it fast and resilient and super cheap as it turns out
since you pay only for what you use&amp;hellip; and a personal blog isn&amp;rsquo;t ever going to use that much.
I expect this setup will cost about 20% of what I&amp;rsquo;ve been paying for the private server and it&amp;rsquo;s 1000%
better way of doing things. If I had something really interesting to post and got linked from
a site like the drudgereport or slashdot.. my little blog could handle the crushing levels of traffic that would
flatten any single web server. They also deal with issues of redundancy and keeping it online and availiable.&lt;/p&gt;
&lt;p&gt;I&amp;rsquo;m using a few plugins for &lt;a href=&#34;http://octopress.org/&#34;&gt;Octopress&lt;/a&gt;.. most of which are about a page or two of Ruby code
with a little &lt;a href=&#34;http://wiki.shopify.com/UsingLiquid&#34;&gt;Liquid&lt;/a&gt;, &lt;a href=&#34;http://daringfireball.net/projects/markdown/syntax&#34;&gt;Markdown&lt;/a&gt;, and HTML mixed in. I also wrote some perl to automatically build image
thumbnails and watermark some of my full size images. The image gallery pages are semi-automated and
that&amp;rsquo;s the last bit that needs more work. I plan to set those up with &lt;a href=&#34;http://http://fancybox.net/&#34;&gt;Fancybox&lt;/a&gt; to make
the gallery pages a little easier to use. I plan to release the perl scripts along with the rest
of the source for this blog on &lt;a href=&#34;https://github.com/&#34;&gt;github&lt;/a&gt; when it&amp;rsquo;s a little further along.&lt;/p&gt;</description>
    </item>
    
  </channel>
</rss>
