Increase time between thin restarts, rescue jasmine load failure for deploying without test gems
This commit is contained in:
parent
75a1d9dda0
commit
847a66735a
2 changed files with 10 additions and 4 deletions
|
|
@ -40,8 +40,8 @@ namespace :deploy do
|
|||
|
||||
matches.each_with_index do |thin, index|
|
||||
unless index == 0
|
||||
puts "sleeping for 10 seconds"
|
||||
sleep(10)
|
||||
puts "sleeping for 20 seconds"
|
||||
sleep(20)
|
||||
end
|
||||
run "svc -t /service/#{thin}"
|
||||
end
|
||||
|
|
|
|||
|
|
@ -1,2 +1,8 @@
|
|||
require 'jasmine'
|
||||
load 'jasmine/tasks/jasmine.rake'
|
||||
begin
|
||||
require 'jasmine'
|
||||
load 'jasmine/tasks/jasmine.rake'
|
||||
rescue LoadError
|
||||
task :jasmine do
|
||||
abort 'Jasmine is not installed.'
|
||||
end
|
||||
end
|
||||
|
|
|
|||
Loading…
Reference in a new issue