GeoBlacklight for Princeton University Library
git clone https://github.com/pulibrary/pulmap.git
cd pulmap
bundle install
yarn install
rake servers:start
bundle exec rspec
rails s
rake servers:stop
or lando stop
The reindex is triggered on the figgy side.
$ ssh deploy@figgy-worker-prod1
$ tmux new -t [yourname]
$ cd /opt/figgy/current
$ BULK=true bundle exec rails c
> GeoResourceReindexer.reindex_geoblacklight
$ ssh deploy@figgy-web-staging1
$ tmux new -t [yourname]
$ cd /opt/figgy/current
$ BULK=true bundle exec rails c
> GeoResourceReindexer.reindex_geoblacklight
It takes a few minutes to get all the complete georesources. Then it invokes the updated event on each, which sends them to rabbitmq.
Then you'll start to see output like "Indexed into GeoBlacklight:..."
We usually run this overnight.
Pulmap can listen for events published on a RabbitMQ fanout exhange. In order to use them, do the following:
events
settings in config/pulmap.yml
WORKERS=GeoblacklightEventHandler rake sneakers:run
This will subscribe pulmap to the events and update geoblacklight records when they're created, updated, or deleted.