A Spotlight application for Princeton University Library, formerly known as Pomegranate, but renamed to the offical brand: Digital PUL.
git clone git@github.com:pulibrary/dpul.git
cd dpul
bundle install
yarn install
Remember you'll need to run bundle install
and yarn install
on an ongoing basis as dependencies are updated.
Lando will automatically set up docker images for Solr and Postgres which match
the versions we use in Production. The ports will not collide with any other
projects you're using Solr/Postgres for, and you can easily clean up with lando destroy
or turn off all services with lando poweroff
.
rake servers:start
bundle exec rspec
backend: bin/rails s
frontend: bin/vite dev
sidekiq: bundle exec sidekiq
rake dpul:site_admin
Blacklight.default_index.connection.commit
Figgy announces events to a durable RabbitMQ fanout exchange. In order to use them, do the following:
events
settings in config/config.yml
WORKERS=FiggyEventHandler rake sneakers:run
This will subscribe to the events and update the DPUL records when they're created, updated, or deleted.
To ensure production or staging indexes are up to date:
cd /opt/dpul/current
bundle exec rake dpul:reindex:collections
Note that this enqueues indexing for each collection, and actual indexing is run via background jobs. On DPUL, indexing a collection also deletes records that have been removed from the collection.
DATE=2021-10-21
ssh pulsys@dpul-staging1 'sudo service nginx stop' && bundle exec cap staging replicate:to_staging && ssh pulsys@dpul-staging1 'sudo service nginx start'