Install the database and load the
bundle install
bundle exec rake db:create
bundle exec rake db:migrateThe solr_wrapper gem can install and manage solr and your core in development. The solr_wrapper handles installing a local solr and copying over the latest version of the solr configuration.
To install solr, build the core, and load data:
bundle exec solr_wrapperThe solr schema will frequently change, so if you are using your own solr install you will need to delete your solr core after pulling changes and restarting solr with the new configuration.
To use your own solr, add a new blacklight-core core.
solr create -c blacklight-coreCopy the following config files to the blacklight-core directory.
cp /path/to/project/jesuit-lives/solr/blacklight-core/conf/* /path/to/solr/8.8.1/server/solr/blacklight-core/conf/Then restart solr.
solr restartDevelopment user credentials and some standard data fields are in seeds.rb:
bundle exec rake db:seed:replantJesuit records are stored in db/import and imported with
bundle exec rake jlives:import_jesuitsDeployment stages are:
sandbox- non-BC staging server, running full buildstaging- (as yet unprovisioned) BC staging serverproduction- (as yet unprovisioned) BC production server
To deploy to sandbox:
ssh-add
bundle exec cap sandbox deployTo restart the sandbox Rails server:
ssh-add
bundle exec cap sandbox deploy:restart