add deploy task
This commit is contained in:
parent
308fc5fb89
commit
01d680cc4e
1 changed files with 15 additions and 0 deletions
15
Rakefile
15
Rakefile
|
@ -4,3 +4,18 @@
|
|||
require File.expand_path('../config/application', __FILE__)
|
||||
|
||||
Rails.application.load_tasks
|
||||
|
||||
task :deploy 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(test_sgmap)
|
||||
branch = 'master'
|
||||
domains.each do |domain|
|
||||
sh "mina deploy domain=#{domain} branch=#{branch}"
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue