typo edge, dreamhost, feedburner
Why don't you subscribe to my blog while you're here? I'm a freelance web developer and I blog about Ruby, Rails, and business online.
Go ahead and subscribe to my RSS feed. Thanks for visiting!
I’ve upgraded this blog from typo stable to typo edge so the source is coming straight out of subversion. It wasn’t as straight forward as I was hoping. Here’s how you can upgrade your stable typo installation to stay on the edge, using dreamhost hosting, and feedburner syndication:
* Backup your old typo blog, including the database.
* No really, backup your blog and db, you may need it later!
* Modify your current blog to point to the ‘azure’ theme otherwise you’ll get an error when starting your new blog.
* Layout your directory structure so that you have something like this for good practice:
/yourdomain.com
/your_backed_up_blog
/current -> /your_backed_up_blog
* Change your hosting settings in Dreamhost so that the doc root is
* From /yourdomain.com run
* Modify the database.yml file to your settings.
* Replace your dispatch.fcgi with:
#!/usr/bin/env ruby
require File.dirname(__FILE__) + “/../config/environment”
require ‘fcgi_handler’
#RailsFCGIHandler.process!
class MyRailsFCGIHandler < RailsFCGIHandler
SIGNALS = {
'TERM' => :exit_now,
}
def exit_now_handler(signal)
dispatcher_log :info, “ignoring request to terminate immediately”
end
end
MyRailsFCGIHandler.process! nil, 25
* Jump in to /yourdomain.com/current and type
* If you’re running with feedburner then to enable autodiscovery of your feedburner feed and not typo’s default feed replace the
<%= javascript_include_tag 'prototype' %>
<%= javascript_include_tag 'effects' %>
<%= javascript_include_tag 'typo' %>
* Now modify the feedburner line you just added with your own feedburner feed:
* Note that the previous feedburner mod may get written over when you update your svn export.
* Finally redirect the ‘current’ symlink so that it points to /yourdomain.com/typo. Your dir layout should look like this:
/yourdomain.com
/your_backed_up_blog
/typo
/current -> /typo
You should be done now. If things aren’t working then check your logs for hints. If I’ve left anything out please add comments and I’ll update this post as required.


April 20th, 2006 at 6:04 pm