Displaying 1 result from an estimated 1 matches for "copy_mongrel_cluster_config".
2008 May 05
2
Deploying to a staging server using Capistrano: how to start up BackgrounDRb?
...se Capistrano-ext for multistage
deployments:
cap staging deploy
Before I deploy, I SSH into the VPS and do
script/backgroundrb -e staging start
in my config/deploy/staging.rb file:
----------------
set :rails_env, ''staging''
...
task :after_update_code do
set_env_staging
copy_mongrel_cluster_config
restart_backgroundrb
end
desc "Sets the environment variable RAILS_ENV=''staging''."
task :set_env_staging do
ENV[''RAILS_ENV''] = ''staging''
puts "ENV[''RAILS_ENV''] = #{ENV[''RAILS_ENV'']}"...