<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">

  <title><![CDATA[Meth Log]]></title>
  <link href="http://methlog.com/atom.xml" rel="self"/>
  <link href="http://methlog.com/"/>
  <updated>2012-12-15T01:29:34-05:00</updated>
  <id>http://methlog.com/</id>
  <author>
    <name><![CDATA[Peter Meth]]></name>
    
  </author>
  <generator uri="http://octopress.org/">Octopress</generator>

  
  <entry>
    <title type="html"><![CDATA[Deploying Octopress to EngineYard / Orchestra]]></title>
    <link href="http://methlog.com/blog/2012/12/15/deploying-octopress-to-engineyard-slash-orchestra-dot-io/"/>
    <updated>2012-12-15T17:26:00-05:00</updated>
    <id>http://methlog.com/blog/2012/12/15/deploying-octopress-to-engineyard-slash-orchestra-dot-io</id>
    <content type="html"><![CDATA[<p>When I decided to start blogging I was faced with some choices.  The first choice to be made was which blogging software to use.  I have had some experience using Wordpress and have never been too happy with it.  I have also used Joomla, which I don&#8217;t think is too well suited to blogging.  I figured I would give Drupal a try.  It was ok, but ultimately left me with the same feeling as Wordpress.</p>

<p>Then I discovered something that made me say &#8220;Yes, this is it&#8221;.  That something was Octopress.  <!-- more -->As a developer, I am comfortable doing things on the command line, performing builds and deploys.  This is exactly the type of user Octopress targets.  In fact, here is a quote from the Octopress documentation:</p>

<blockquote><p>First, I want to stress that Octopress is a blogging framework for
hackers. You should be comfortable running shell commands and familiar
with the basics of Git. If that sounds daunting, Octopress probably
isn’t for you.</p></blockquote>

<p>Now that I had decided on using Octopress, I next needed to figure out where to host it.  One of the services I have been hearing a lot about that I have been wanting to play with is EngineYard, so I thought it would be a good opportunity to try them out as a potential home for my blog.  In checking the Octopress documentation, they list several deployment options but none of them are EngineYard.  So, here&#8217;s how I managed to deploy my Octopress blog to EngineYard&#8217;s Orchestra PHP Cloud.</p>

<h2>Step 1: Setup a Github account if you don&#8217;t already have one</h2>

<p>The documentation is your friend here. <a href="https://help.github.com/articles/signing-up-for-a-new-github-account">https://help.github.com/articles/signing-up-for-a-new-github-account</a></p>

<h2>Step 2: Setup a new Github repository</h2>

<p><a href="https://help.github.com/articles/create-a-repo">https://help.github.com/articles/create-a-repo</a></p>

<h2>Step 3: Setup Octopress</h2>

<p>Simply follow the steps at the <a href="http://octopress.org/docs/setup/">Octopress website</a> to get setup. You can ignore the &#8220;Next Steps&#8221; section at the bottom as that is basically what I am going to go through.</p>

<h2>Step 4: Add Github as a remote repository</h2>

<figure class='code'><figcaption><span></span></figcaption><div class="highlight"><table><tr><td class="gutter"><pre class="line-numbers"><span class='line-number'>1</span>
<span class='line-number'>2</span>
<span class='line-number'>3</span>
<span class='line-number'>4</span>
</pre></td><td class='code'><pre><code class='bash'><span class='line'>git remote add github ssh://git@github.com/<span class="o">{</span>your Github username<span class="o">}</span>/<span class="o">{</span>repo name from step 6<span class="o">}</span>.git
</span><span class='line'>
</span><span class='line'>example:
</span><span class='line'>git remote add github ssh://git@github.com/pmeth/methlog.git
</span></code></pre></td></tr></table></div></figure>


<h2>Step 5: Create a new blog post</h2>

<figure class='code'><figcaption><span></span></figcaption><div class="highlight"><table><tr><td class="gutter"><pre class="line-numbers"><span class='line-number'>1</span>
</pre></td><td class='code'><pre><code class='bash'><span class='line'>rake new_post<span class="o">[</span><span class="s2">&quot;Post Title&quot;</span><span class="o">]</span>
</span></code></pre></td></tr></table></div></figure>


<h2>Step 6: Generate the static pages</h2>

<figure class='code'><figcaption><span></span></figcaption><div class="highlight"><table><tr><td class="gutter"><pre class="line-numbers"><span class='line-number'>1</span>
</pre></td><td class='code'><pre><code class='bash'><span class='line'>rake generate
</span></code></pre></td></tr></table></div></figure>


<h2>Step 7: Remove the public directory from the .gitignore file</h2>

<figure class='code'><figcaption><span></span></figcaption><div class="highlight"><table><tr><td class="gutter"><pre class="line-numbers"><span class='line-number'>1</span>
</pre></td><td class='code'><pre><code class='bash'><span class='line'>grep -v ^public<span class="nv">$ </span>.gitignore &gt; .gitignore2 <span class="o">&amp;&amp;</span> mv .gitignore2 .gitignore
</span></code></pre></td></tr></table></div></figure>


<h2>Step 8: Commit your generated blog</h2>

<figure class='code'><figcaption><span></span></figcaption><div class="highlight"><table><tr><td class="gutter"><pre class="line-numbers"><span class='line-number'>1</span>
</pre></td><td class='code'><pre><code class='bash'><span class='line'>git add -A <span class="o">&amp;&amp;</span> git commit -m <span class="s1">&#39;writing first blog post&#39;</span>
</span></code></pre></td></tr></table></div></figure>


<h2>Step 9: Push your blog up to Github</h2>

<figure class='code'><figcaption><span></span></figcaption><div class="highlight"><table><tr><td class="gutter"><pre class="line-numbers"><span class='line-number'>1</span>
</pre></td><td class='code'><pre><code class='bash'><span class='line'>git push github master
</span></code></pre></td></tr></table></div></figure>


<h2>Step 10: Sign up for EngineYard&#8217;s Orchestra PHP Cloud</h2>

<p><a href="https://login.engineyard.com/signup/orchestra?locale=en">https://login.engineyard.com/signup/orchestra?locale=en</a></p>

<h2>Step 11: Deploy an App</h2>

<p>Click the button to Deploy an Orchestra PHP Application.  The free one
is sufficient for now, but if you decide you like the service or need
to use some of the advanced features, you should consider signing up
for their paid service.</p>

<p>When setting up the App, you will be asked for your app name (this will
become the subdomain if using the Free account), your Github public repo url, the
branch name and the index file. Make sure the index file is public/index.html
then click Launch App.</p>

<p><img src="http://methlog.com/images/posts/2012-12-15/deploying.png" title="&#34;Deploying your app&#34;" alt="&#34;Deploying your app&#34;"></p>

<p>After a minute or two of waiting, EngineYard should have
pulled down your blog from Github and launched it on their servers for
you to enjoy. The Orchestra control panel will give you a link to the
website, which is labelled &#8220;Public Hostname&#8221;.  You can click on it to
view your newly created blog.</p>

<p>To make any changes to your blog you simply make changes to the
appropriate page under source/_posts, run <code>rake generate</code>,
commit your changes then <code>git push github master</code>.  After a few minutes,
EngineYard will sense the updates, and automatically apply the changes.</p>

<h2>That&#8217;s it.</h2>

<p>The nice thing about hosting your blog on EngineYard is that if you
write a popular blog post that gets &#8220;Slashdotted&#8221; or makes it
to the front page of Hackernews, EngineYard will automatically scale up
to meet the demand (note this feature is not available on free apps) and
your blog won&#8217;t take down your server.  When the traffic dies down, it will
automatically scale back down again.</p>
]]></content>
  </entry>
  
  <entry>
    <title type="html"><![CDATA[The Road to True North PHP ... Reflections]]></title>
    <link href="http://methlog.com/blog/2012/10/05/the-road-to-true-north-php-reflections/"/>
    <updated>2012-10-05T01:45:00-04:00</updated>
    <id>http://methlog.com/blog/2012/10/05/the-road-to-true-north-php-reflections</id>
    <content type="html"><![CDATA[<p>As you may or may not know I have been planning a conference called <a href="http://truenorthphp.ca">True North PHP</a> with my friend <a href="https://twitter.com/grmpyprogrammer">Chris Hartjes</a>.  I wanted to blog about some of my experiences in planning the conference and reflect back on what brought me here.  This blog is especially important to me since this is the first time I am organizing a conference and would appreciate all the feedback I can get.</p>

<!-- more -->


<p>First I want to go over some background of how the idea for the conference came about and how I got involved.  This post may be a bit lengthy but hopefully it is an enjoyable read.</p>

<p>I have been programming PHP for about 10 years and I had been organizing a meetup group called the <a href="http://www.meetup.com/East-Toronto-Web-Design-Meetup/">East Toronto Web Design Group</a> since 2006, so I knew what it was like to participate in a community.  However it was not until early 2011 that I started attending PHP meetups.  This is mainly because Toronto had never had a good PHP meetup group until the <a href="http://meetup.gtaphp.org">GTA PHP User Group</a> came into existence.</p>

<p>From the time I attended my first meeting with GTA PHP I was blown away by the size of the group, the knowledge level of the attendees and the quality of the speakers.  I had held several good meetings with the Web Design group, but I guess the PHP topics were more up my alley.  Rapidly I grew more interested in attending the PHP meetups than organizing the Web Design ones, and eventually I stepped down as organizer of the East Toronto Web Design group and volunteered to be one of the organizers of the GTA PHP group.</p>

<p>In late 2011, with a renewed interest in PHP and my eyes newly open to the fact that indeed there was a PHP community in Toronto I started seeking out ways that I could live, learn and talk about PHP and software development in general.  I started using Twitter and started following all the interesting PHP people I could find.  I started listening to podcasts on my drive in to work.  I listened to the <a href="http://pragprog.com/podcasts">Pragmatic Programmers&#8217; Podcast</a>, <a href="https://twitter.com/CalEvans">Cal Evans</a>&#8217; <a href="http://voicesoftheelephpant.com/">Voices of the Elephpant</a>, <a href="https://twitter.com/manuellemos">Manuel Lamos</a>&#8217; <a href="http://www.phpclasses.org/blog/category/podcast/">Lately in PHP</a>, EngineYard&#8217;s <a href="http://www.engineyard.com/podcasts">Cloud Out Loud</a> especially the <a href="https://twitter.com/ElizabethN">Liz Naramore</a> episodes, <a href="https://twitter.com/grmpyprogrammer">Chris Hartjes</a> and <a href="https://twitter.com/funkatron">Ed Finkler</a>&#8217;s <a href="http://devhell.info">/dev/hell</a>, <a href="http://thechangelog.com/">The Changelog</a> and <a href="http://5by5.tv/devshow">The Dev Show</a> (note, I have just about listened to every episode of those shows so need more material.  If you can recommend something else to me in the comments it would be great).  Even though several of them are Ruby centric and I don&#8217;t speak Ruby, I have thoroughly enjoyed all of these Podcasts.</p>

<p>Through going to the meetups, following people on Twitter and listening to the podcasts I became more and more interested in going to a developer conference for the first time.  I looked around and was surprised to find that there were no PHP conferences happening in Toronto.  The closest one I could find was <a href="http://confoo.ca">Confoo</a> in Montreal which is about a 5 hour drive.</p>

<p>Since conferences, hotels and travel are not free, I asked my manager at the time whether the company would pay for me to go to Confoo since it was something that was relevant to my career.  I was told that if the conference were happening in Toronto they would have paid, but since it was in Montreal I would have to pay for it myself.  This sucked, but I really wanted to go so I bought my ticket anyway and took the train down to Montreal with <a href="https://twitter.com/guilhermeblanco">Guilherme Blanco</a> whom I knew from the meetup group.</p>

<p>On the train I talked with Guilherme about the fact that it would be great if there was a conference in Toronto.  He agreed.</p>

<p>I won&#8217;t go into too much detail about Confoo because there is too much to tell but let&#8217;s just say I had a great time, met many really great people and heard some fantastic talks.  I was especially surprised and delighted by the fact that many of the speakers were world renowned builders of tools and products that are used by millions of people, yet they were very approachable and happy to chat, hang out and drink a beer with me.  I attribute a lot of that atmosphere to the organizers of Confoo, <a href="https://twitter.com/ylarrivee">Yann Larrivee</a> and <a href="https://twitter.com/afilina">Anna Filina</a> and I cannot say enough how deeply I respect them for organizing such an incredible event and for their tireless efforts to further the programming community in Canada.</p>

<p>While I was at Confoo it became clear to me that someone had to bring a conference like this to Toronto.  At the time I didn&#8217;t realize it was going to be me.  Instead I was pitching the idea to people hoping that they would take it on and do it and I would offer my full support.  A lot of people expressed interest in seeing a conference in Toronto, but no one really stepped up and offered to run it.  I suppose I shouldn&#8217;t really be surprised seeing that there were only a small handful of people I met there who were actually from Toronto.</p>

<p>All too soon, Confoo ended and I returned to my life in Toronto, but the thought of a conference in Toronto would not leave my mind.  At the next meetup I brought up the idea with Chris Hartjes and he thought it would be great and even said he would help out if I wanted to do it.</p>

<p>I still hadn&#8217;t made up my mind to move forward with a conference until a week or two later <a href="https://twitter.com/JCook21">Jeremy Cook</a> mentioned on Twitter that he was interested in doing some sort of PHP conference.  Chris picked up on his tweet and mentioned that I was talking about doing one, so after some back and forth tweets and emails I went out to Guelph (which is about 1.5 hours from Toronto) to meet with Jeremy and attend a <a href="http://www.meetup.com/Guelph-PHP/">Guelph PHP Meetup</a>.  While there I ran into <a href="https://twitter.com/mtabini">Marco Tabini</a> of <a href="http://www.phparch.com/">PHP Architect</a>, who coincidentally was one of the organizers of php|works in 2006, the last PHP conference held in Toronto.  I got some good advice from Marco and hashed out some details with Jeremy.  When I got back to Toronto I emailed Chris and filled him in and together Jeremy, Chris and I decided we were going to start a conference.</p>

<p>True North PHP was born.</p>

<p>I hope you enjoyed this reflection as much as I enjoyed thinking back and remembering a few of the great people who may not even realize they inspired me to do more and help foster this great community.  Please take some time to share your thoughts in the comments below and let me know if there is anything else related to the conference you would like me to write about in the upcoming weeks.</p>
]]></content>
  </entry>
  
</feed>
