Skip to content

Commit

Permalink
Merge pull request #829 from pulibrary/remove-dev-clean
Browse files Browse the repository at this point in the history
Update clean:development:all
  • Loading branch information
eliotjordan committed Sep 14, 2020
2 parents 6e00f03 + c941ea6 commit da9c4ef
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions lib/tasks/dev.rake
Original file line number Diff line number Diff line change
Expand Up @@ -92,11 +92,10 @@ if Rails.env.development? || Rails.env.test?
end

namespace :development do
desc "Delete all development metadata, index, and original/derivative data"
desc "Delete development database and index data"
task all: :environment do
seeder = DataSeeder.new
seeder.wipe_metadata!
seeder.wipe_files!
Blacklight.default_index.connection.delete_by_query("*:*", params: { softCommit: true })
Rake::Task['db:reset'].invoke
end
end
end
Expand Down

0 comments on commit da9c4ef

Please sign in to comment.