This is the repository for the Radio Preservation Task Force/Association for Recorded Sound Collections Database.
- Ruby 2.2 or higher
- Solr 5.3.0 or higher
- MySQL
Install the Rubygems needed by the application using bundle.
The repository ships with 100 records for testing.
- Start
solr_wrapper(e.g.bundle exec solr_wrapper) - Run the following (which finds Solr's
postscript from the temp directory wheresolr_wrapperinstalls Solr):
bash `bundle exec solr_wrapper dir`/bin/post -c blacklight-core test/sample-data.jsonProduction data is managed in the rptf-index-data repository. Indexing updates should be incremental based on the date of the files. For example:
/opt/solr/bin/post -c blacklight-core test/collections_2019-03-26.jsonYou can delete records using JSON update commands. For example, create a new JSON file that contains the IDs of the records you want to delete.
{"delete": ["collection_1204", "collection_1214", "collection_1215"]}Then run the following command specifying your file like the following (note: this is different from the above command):
/opt/solr/bin/post -c blacklight-core -format solr delete-these.jsonProduction secrets (e.g. MySQL database credentials) are defined using environment variables:
DATABASE_URL(see config/database.yml for the format)SECRET_KEY_BASE(see config/secrets.yml)