Penny Arcade Goes Rails

Posted by Scott Hughes Tue, 15 Nov 2005 15:08:00 GMT

I read over on Penny Arcade that they’ve converted their site to Rails. This is pretty big news for Rails advocates. Penny Arcade has over 4 million readers… And after browsing their new site, I find it pretty damn fast. There is a large speed improvement over their php implementation. So they definitely took advantage of Rail’s caching feature. Of course, the biggest difference will be transparent to their readers, but it should be a hell of a lot easier to maintain and add new features.

Posted in  | Tags , , ,  | no comments

Updated Typo to Latest Edge

Posted by Scott Hughes Tue, 08 Nov 2005 14:34:00 GMT

Last night, I updated this Typo install to the latest svn trunk (rev 725). I had been running at rev 586 for a while now, but I was hesitant to upgrade as I noticed there were a few database changes. Turns out that, thanks to Rails Migrations, the database changes were simple (for me anyways, maybe not for the author of the migrations). While I was at it, I went ahead and updated Typo to run the latest Edge Rails also. Here’s the procedure I used on Dreamhost to install these:

# Get Latest Typo
$ svn co svn://leetsoft.com/typo/trunk typo-edge
# Get Latest Rails
$ cd typo-edge/vendor
$ svn co http://dev.rubyonrails.org/svn/rails/trunk rails
$ cd ..
$ rake update_javascripts
$ rake add_new_scripts
# Copy My Typo Configuration
$ cp ../{old-typo}/config/database.yml config/database.yml
$ cp -r ../{old-typo}/themes/globalreset themes/globalreset
$ vi config/environment.rb #forced RAILS_ENV='production'
# Update link I use to point to a version of Typo
# My setup expects web root at this link/public
$ rm typo
$ ln -s typo-edge typo

Then I opened my browser and navigated to /admin and was immediately prompted with a list of necessary Database Migrations, which must be performed on my existing database to be compatible with this version of Typo. I clicked affirmatively, and after a few seconds I was running the latest and greatest Rails and Typo.

Make sure you backup your database before attempting this. The web-based phpMyAdmin that Dreamhost provides is suitable for this. I’ve seen a couple of users report on the Typo-ML that they had some migration issues. I don’t know if those issues ended up in a wedged database or not, but better safe than sorry.

Posted in  | Tags , , ,  | 4 comments