File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change 11# frozen_string_literal: true
22
3+ require 'fileutils'
4+
35desc 'Run test suite'
46task ci : :environment do
57 shared_solr_opts = { managed : true , verbose : true , persist : false , download_dir : 'tmp' }
1719namespace :sdr do
1820 desc 'Run Solr and GeoBlacklight for interactive development'
1921 task server : %i[ environment ] do |_t , _args |
20- require 'solr_wrapper'
21-
2222 shared_solr_opts = { managed : true , verbose : true , persist : false , download_dir : 'tmp' }
2323 shared_solr_opts [ :version ] = Settings . SOLR_VERSION if Settings . SOLR_VERSION
2424
25+ FileUtils . rm_rf Settings . SOLR_INSTANCE_DIR
26+
2527 SolrWrapper . wrap ( shared_solr_opts . merge ( port : Settings . SOLR_PORT , instance_dir : Settings . SOLR_INSTANCE_DIR ) ) do |solr |
2628 solr . with_collection ( name : Settings . SOLR_INSTANCE_NAME , dir : Rails . root . join ( 'solr/conf' ) . to_s ) do
2729 puts "Solr running at #{ Settings . SOLR_URL } , ^C to exit"
You can’t perform that action at this time.
0 commit comments