Skip to content

Commit

Permalink
Merge pull request #1012 from projectblacklight/rake-server-task
Browse files Browse the repository at this point in the history
Add blacklight:server rake task for launching jetty and the rails server
  • Loading branch information
jcoyne committed Nov 12, 2014
2 parents a8fd122 + 10d954a commit f0211e6
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 f0211e6

Please sign in to comment.