sul-dlss-deprecated / portfolios

https://eportfolio.stanford.edu/
Other
0 stars 1 forks source link
access application

Build Status Coverage Status

SUL Spotlight Exhibit template project

Similar to Exhibits, Portfolios is a SUL Spotlight application. In fact, this is just a copy of Exhibits code with different configuration and data.

Configuration

Portfoios need to provide the following configuration files:

Reindexing content

A rake task is provided to (re)index content into the Solr index. It uses the configured sets in config/exhibit.yml.

$ rake spotlight:index

A whenever-based cron task is configured to run nightly to keep the exhibit synchronized with the latest upstream changes. At this time, the task only adds or modifies records, and does not remove records that have been deleted or disassociated with the given OAI set.

Development

You can spin up the rails server, jetty, and populate the solr index using this command:

$ REMOTE_USER="archivist1@example.com" rake server

REMOTE_USER should match the name of the user you create when prompted. This will allow you to bypass the webauth authentication.

Note that the blacklight-spotlight gem requires mini_magick which requires ImageMagick to be installed (e.g., brew install imagemagick)

Deploying

You must be on VPN to deploy the worker machine. Then deploy as usual using Capistrano:

$ cap stage deploy