Archive for September, 2008
Tuesday, September 30th, 2008
Running script/runner in production environment
Problem
Following from a previous post about email scheduling with runner and cron, it turns out that the runner default behaviour is to run in the development environment.
Solution
Although by reading the help for the script/runner, there is a suggestion to run it with the -e production added to the end, it doesn’t seem to be working.
The [...]
No Comments » - Posted in ruby on rails by kosmas
Wednesday, September 17th, 2008
Dreamhost, Rails 2.1.1, Freeze, Capistrano
Problem
With the imminent upgrade in Dreamhost to Rails 2.1.1 (dreamhost blog post here), you may want to freeze your Rails version to a previous version, using capistrano.
Solution
On your local development pc freeze the rails:
rake rails:freeze:gems
Add the new code to your svn repository:
svn commit -m ‘freeze rails’
And then deploy to dreamhost using capistrano:
cap deploy
Your rails project [...]