2015-08-10 11:05:06 +02:00
|
|
|
# Add your own tasks in files placed in lib/tasks ending in .rake,
|
|
|
|
# for example lib/tasks/capistrano.rake, and they will automatically be available to Rake.
|
|
|
|
|
2018-03-06 15:11:26 +01:00
|
|
|
require File.expand_path('../config/application', __FILE__)
|
2015-08-10 11:05:06 +02:00
|
|
|
|
|
|
|
Rails.application.load_tasks
|
2015-09-01 14:58:55 +02:00
|
|
|
|
|
|
|
task :deploy do
|
2016-07-05 16:11:50 +02:00
|
|
|
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
|
2015-09-01 14:58:55 +02:00
|
|
|
domains = %w(37.187.154.237 37.187.249.111)
|
|
|
|
domains.each do |domain|
|
|
|
|
sh "mina deploy domain=#{domain}"
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
task :deploy_test do
|
2016-04-14 17:29:26 +02:00
|
|
|
domains = %w(192.168.0.116)
|
|
|
|
branch = 'clamav'
|
2015-09-01 14:58:55 +02:00
|
|
|
domains.each do |domain|
|
|
|
|
sh "mina deploy domain=#{domain} branch=#{branch}"
|
|
|
|
end
|
|
|
|
end
|