Wednesday, May 7th, 2008
Disabling rails web site when using mongrel,Apache,capistrano 1.4.1
Problem
You want to disable your rails web site for maintenance, but your application uses an older capistrano version than the one currently installed.
Solution
According to the RubyOnRails Cookbook recipe 13.12, it should only be a case of running cap disable_web (enable_web).
But in the meantime you have upgraded your capistrano version to version 2, and started using [...]
No Comments » - Posted in ruby on rails by kosmas
Thursday, February 14th, 2008
Using older Capistrano version 1.x after upgrading to Capistrano 2.x
Problem
You have just upgraded your Capistrano installation to version 2.x, but you didn’t have time to convert your recipes to the newer version.
Solution
In order to be able to use your old recipes of Capistrano version 1.x after upgrading, you can use the following (assuming your version 1.x is 1.4.1):
cap _1.4.1_ deploy
or, if you have migrations [...]
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
Monday, November 26th, 2007
Keeping uploaded files between deployments
Problem
You are using file_column plugin (or maybe another plugin?), to upload files in your ruby on rails application. Because the files are big you don’t want to have a different copy stored in your subversion repository for each different deployment version. You want to keep a common folder with all your uploaded files, and use [...]