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:
- I had previously setup my Dreamhost account to leverage my own gems, ruby, etc. The best info for this is from Nate Clark.
- 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.
- Install typo to a specific path by running typo install $HOME/blog.tjmoretto.com/. Typo has the actual instructions if you need.
- Configure the web directory of my subdomain to point to the $HOME/blog.tjmoretto.com/public directory of the typo install.
- 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.
- Update the database.yml file to use the mysql database (default is sqlite).
- Create the database tables by running rake db:migrate RAILS_ENV=production from the root of the typo install.
- 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
- 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.
- Done!