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!
Barrett said,
February 13, 2008 @ 11:07 am
I keep getting this when I run dispatch.fcgi: Content-Type: text/html; charset=utf-8 Status: 302 Found Location: http://:/accounts/signup X-Runtime: 0.06067 Cache-Control: no-cache Content-Length: 90 You are being redirected.I’ve tried this with capistrano publishing a version that works in development and also just installing the gems in my DH login. either way it looks like it doesn’t recognize the erb files in accounts. Is there something else I need to do?
Barrett said,
February 13, 2008 @ 11:07 am
I gave up on Typo and installed SimpleLog instead. It was way easy.
admin said,
February 13, 2008 @ 11:12 am
After fighting with insane slowness and crashing of Typo on Dreamhost, I too gave up. I looked into SimpleLog a bit, but found it not to be widely used enough to peak my interest.