This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Hot deploy Rails apps (rolling restart) with Capistrano, Haproxy, and cluster of Passengers | |
| # Capistrano config | |
| namespace :passenger do | |
| task :disable_load_balancing, :roles => :app do | |
| run "rm -f #{current_path}/public/http-check.txt" | |
| end | |
| task :enable_load_balancing, :roles => :app do |