demarches-normaliennes/Rakefile
gregoirenovel e26f4148ff Bump development gems
- brakeman
- rubocop
- scss_lint
2018-03-06 16:17:22 +01:00

35 lines
843 B
Ruby

# 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.
require File.expand_path('config/application', __dir__)
Rails.application.load_tasks
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.each do |domain|
sh "mina deploy domain=#{domain}"
end
end
task :deploy_test do
domains = %w(192.168.0.116)
branch = 'clamav'
domains.each do |domain|
sh "mina deploy domain=#{domain} branch=#{branch}"
end
end