Add new deploy tasks
This commit is contained in:
parent
eb0edd0b07
commit
8eb604383c
1 changed files with 16 additions and 0 deletions
16
Rakefile
16
Rakefile
|
@ -6,12 +6,28 @@ require File.expand_path('../config/application', __FILE__)
|
||||||
Rails.application.load_tasks
|
Rails.application.load_tasks
|
||||||
|
|
||||||
task :deploy do
|
task :deploy do
|
||||||
|
domains = %w(37.187.249.111 149.202.72.152 149.202.198.6)
|
||||||
|
domains.each do |domain|
|
||||||
|
sh "mina deploy domain=#{domain}"
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
task :deploy_ha do
|
||||||
|
domains = %w(149.202.72.152 149.202.198.6)
|
||||||
|
domains.each do |domain|
|
||||||
|
sh "mina deploy domain=#{domain}"
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
|
||||||
|
task :deploy_old do
|
||||||
domains = %w(37.187.154.237 37.187.249.111)
|
domains = %w(37.187.154.237 37.187.249.111)
|
||||||
domains.each do |domain|
|
domains.each do |domain|
|
||||||
sh "mina deploy domain=#{domain}"
|
sh "mina deploy domain=#{domain}"
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
task :deploy_test do
|
task :deploy_test do
|
||||||
domains = %w(192.168.0.116)
|
domains = %w(192.168.0.116)
|
||||||
branch = 'clamav'
|
branch = 'clamav'
|
||||||
|
|
Loading…
Reference in a new issue