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|
|
matches.each_with_index do |thin, index|
|
||||||
unless index == 0
|
unless index == 0
|
||||||
puts "sleeping for 10 seconds"
|
puts "sleeping for 20 seconds"
|
||||||
sleep(10)
|
sleep(20)
|
||||||
end
|
end
|
||||||
run "svc -t /service/#{thin}"
|
run "svc -t /service/#{thin}"
|
||||||
end
|
end
|
||||||
|
|
|
||||||
|
|
@ -1,2 +1,8 @@
|
||||||
|
begin
|
||||||
require 'jasmine'
|
require 'jasmine'
|
||||||
load 'jasmine/tasks/jasmine.rake'
|
load 'jasmine/tasks/jasmine.rake'
|
||||||
|
rescue LoadError
|
||||||
|
task :jasmine do
|
||||||
|
abort 'Jasmine is not installed.'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue