Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

workaround for core exists error #391

Merged
merged 1 commit into from
Nov 1, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions lib/tasks/sdr.rake
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# frozen_string_literal: true

require 'fileutils'

desc 'Run test suite'
task ci: :environment do
shared_solr_opts = { managed: true, verbose: true, persist: false, download_dir: 'tmp' }
Expand All @@ -17,11 +19,11 @@ end
namespace :sdr do
desc 'Run Solr and GeoBlacklight for interactive development'
task server: %i[environment] do |_t, _args|
require 'solr_wrapper'

shared_solr_opts = { managed: true, verbose: true, persist: false, download_dir: 'tmp' }
shared_solr_opts[:version] = Settings.SOLR_VERSION if Settings.SOLR_VERSION

FileUtils.rm_rf Settings.SOLR_INSTANCE_DIR
mnyrop marked this conversation as resolved.
Show resolved Hide resolved

SolrWrapper.wrap(shared_solr_opts.merge(port: Settings.SOLR_PORT, instance_dir: Settings.SOLR_INSTANCE_DIR)) do |solr|
solr.with_collection(name: Settings.SOLR_INSTANCE_NAME, dir: Rails.root.join('solr/conf').to_s) do
puts "Solr running at #{Settings.SOLR_URL}, ^C to exit"
Expand Down