Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fix cap workers bug

  • Loading branch information...
commit 08477478c18b1692fcd3c7f1474f3505de029241 1 parent 6af5cd4
@chewbranca chewbranca authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  config/deploy/recipes/capistrano_application_god.rb
View
2  config/deploy/recipes/capistrano_application_god.rb
@@ -43,7 +43,7 @@
task :setup_application_god_primary, :roles => :app, :except => { :no_release => true } do
set :enable_god_for_app, true
- set(:enable_god_for_workers) { not roles[:workers].include?(find_servers_for_task(current_task)) }
+ set(:enable_god_for_workers) { not roles[:workers].include?(find_servers_for_task(current_task).first) }
location = fetch(:template_dir, "config/deploy/templates") + '/application.god.erb'
template = File.file?(location) ? File.read(location) : raise("File Not Found: #{location}")
Please sign in to comment.
Something went wrong with that request. Please try again.