Archive for February, 2008

Getting Typo 5 running on Dreamhost

I decided to attempt to install Typo 5.0.2 on my Dreamhost account in an effort to learn something about Rails 2. Didn’t go so well, but here’s what I had to do to get it working:

  1. I had previously setup my Dreamhost account to leverage my own gems, ruby, etc. The best info for this is from Nate Clark.
  2. Install the typo gem. This was time consuming, because Dreamhost kept killing my *gem install* processes. In the end, I had to download each of the required gems independently and install them one by one. I just placed them in my home directory and then ran gem install gem_name.
  3. Install typo to a specific path by running typo install $HOME/blog.tjmoretto.com/. Typo has the actual instructions if you need.
  4. Configure the web directory of my subdomain to point to the $HOME/blog.tjmoretto.com/public directory of the typo install.
  5. Create a mysql database using the Dreamhost admin tool. I ended up using mysql, because when I first tried to write a blog entry with the default sqlite setup, I was getting an Invalid state error. Could not find any useful info on the typo mailing list for fixing this.
  6. Update the database.yml file to use the mysql database (default is sqlite).
  7. Create the database tables by running rake db:migrate RAILS_ENV=production from the root of the typo install.
  8. Update the dispatch.fcgi file to use my own gems by replacing the existing shebang line at the top of the file with #!/home/<user>/.packages/bin/ruby
  9. Test out the dispatch.fcgi process by running it from the command line. This can be done by going to the $HOME/blog.tjmoretto.com/public directory and running ./dispatch.fcgi. You should see the html output to the console if it is working correctly.
  10. Done!

Comments (3)