Nov 04 2008

Rails Tip: Recreate database before test, not!

Category: Uncategorizedciukes @ 10:58 pm

There is a lot of support to all my crazy projects given by Onoclea.com – a professional hosting service, crafted to fit you needs. Despite the great support I get from the team there are boundaries I cannot cross. One of them is no create/drop database permission for PostgreSQL. This restriction made a clash with Ruby On Rails test routine which is dropping test database without a warning. Luckily that was an easy fix to create. Now I want save your precious time sharing the tip. The only requirement is that you can have PL/pgSQL installed. (Ask your sysadmin if unsure)
Continue reading “Rails Tip: Recreate database before test, not!”

Tags: , , , , , ,


Jun 04 2008

mod_rails revisited

Category: Uncategorizedciukes @ 4:09 pm

For those not familiar with the subject following is a short explanation, all experienced readers may skip this paragraph.
Until now it was a bit of extra work to deploy a Ruby On Rails applications because there was no Apache module like mod_php for PHP – to let deployment happen just by copying files to a server. Tools like Capistrano are to help but the Rails community expressed many times how much they miss PHP approach. The situation has changed when guys from Phusion created mod_rails project. Last time I checked it was in a good shape yet missing couple details from the documentation. Despite problems I was stunned with a quick support provided by one of the developers. That was a good sign for the project. Now I feel it is time to check how things are going.
Continue reading “mod_rails revisited”

Tags: , , , , , , ,


Apr 16 2008

mod_rails – The Crash Course

Category: Uncategorizedciukes @ 9:52 pm

Couple days ago Phussion guys released mod_rails Apache module. The promise is very simple: deploy Rails applications in the PHP way. This is not the best marketing they could have. Rails application deployment is not a big thing – I was deploying applications with shell scripts at no cost at all. Since there is Capistrano tool I don’t think this is a problem at all. The upload-single-file-through-ftp approach is making more troubles than it solves (which files did I change?) and it is not encouraging me to peek at the new toy at all. What I want to see is simplistic installation procedure and the amazing performance (speed is promoted right after the promise of easy deployment).
Continue reading “mod_rails – The Crash Course”

Tags: , , , , , ,