Created
December 7, 2014 14:11
-
-
Save pgeraghty/3d56d2555d564fdedb97 to your computer and use it in GitHub Desktop.
Mina - serial deployment to multiple hosts
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
set :domains, %w[host1 host2 host3] | |
desc "Deploy to all servers" | |
task :deploy_all do | |
isolate do | |
domains.each do |domain| | |
set :domain, domain | |
invoke :deploy | |
run! | |
end | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment