Skip to content

Commit

Permalink
Add blacklight:server rake task for launching jetty and the rails server
Browse files Browse the repository at this point in the history
  • Loading branch information
cbeer committed Nov 12, 2014
1 parent a8fd122 commit 10d954a
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions tasks/blacklight.rake
Original file line number Diff line number Diff line change
Expand Up @@ -40,4 +40,26 @@ namespace :blacklight do
desc "Create the test rails app"
task :generate => ['engine_cart:generate'] do
end

task :server do
if File.exists? 'spec/internal'
within_test_app do
system "bundle update"
end
end

unless File.exists? 'jetty'
Rake::Task['jetty:clean'].invoke
end

jetty_params = Jettywrapper.load_config
jetty_params[:startup_wait]= 60

Jettywrapper.wrap(jetty_params) do
within_test_app do
system "rake solr:marc:index_test_data"
system "bundle exec rails s"
end
end
end
end

0 comments on commit 10d954a

Please sign in to comment.