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

Friday, November 30th, 2007

cap deploy_with_migrations default behaviour

Problem
When using cap deploy_with_migrations, the default behaviour is to deploy with the migrations in the production environment.
Solution
To change this behavior add:

set :rails_env, “development”
in your config/deploy.rb

No Comments » - Posted in ruby on rails by kosmas