Discovery application for Emory's Cor repository.
Ruby version 2.7.5, Rails version 5.1
Blacklight 7
MySQL 5.7.22
git clone git@github.com:emory-libraries/dlp-lux.git
cd ./dlp-lux
bundle install
database.yml
expects. In the root directory of the application, create a .env
file and add the line DATABASE_USERNAME=root
. (By default, MySQL has the username root
with no password.) Also create a .env.development
file and a .env.test
file and add the lines DATABASE_NAME=dlp-lux_development
and DATABASE_NAME=dlp-lux_test
, respectively.DATABASE_AUTH=true
must be set in your development environment.
bundle exec rails c
u = User.new
u.uid = "user"
u.display_name = "User Name"
u.email = "email@testdomain.com"
u.password = "password"
u.password_confirmation = "password"
u.save
config/reading_room_ips.yml
. See the existing file for the example setup.rails db:create db:migrate
RAILS_ENV=test rails db:create db:migrate
rails db:migrate
yarn install
solr_wrapper
solr_wrapper --config config/solr_wrapper_test.yml
rspec spec
rails server
http://localhost:3000
and see the applicationIIIF_MANIFEST_URL
environment variable needs to be set. This URL is the base
URL for the Hyrax instance that serves the Work's IIIF manifest. An example:
https://curate-qa.curationexperts.com/concern/curate_generic_works/
.THUMBNAIL_URL
environment variable needs to be set. This URL is the base URL for the Hyrax instance that serves the Work's thumbnail images. An example: https://curate-qa.curationexperts.com
In order to prevent search engine crawling of the system before it's ready to launch, we use HTTP password protection. This is set via environment variables.
Set HTTP_PASSWORD_PROTECT='true'
to enable this feature.
Set HTTP_PASSWORD_PROTECT='false'
to disable this feature.
Set the login and password via environment variables HTTP_USERNAME
and HTTP_PASSWORD
tki
and receive your 12-hour AWS credentials.AWS_PROFILE=tki-aws-account-70-rhedcloud/RHEDcloudAdministratorRole BRANCH=<tag> bundle exec cap <env> deploy
where <tag>
is either a version, like v0.4.32, or a branch, like master and
where <env>
is one of production, test, or arch.
rspec spec
to run the default test suiterspec spec/system
,rspec spec/system/search_catalog_spec.rb
,rspec spec/system/search_catalog_spec.rb:178
rspec spec --tag relevancy:true
PROD_LIKE_ENV=qa|test|arch|prod rake lux:relevancy
jmeter
with no command-line arguments on unix-like systems).jmeter/blacklight.jmx
from the file menu.User Defined Variables
panel, set the values of threads
and loops
to 1 for initial smoke-test run.HTTP Request Defaults
matches the server you want to run against (digital.library.emory.edu
for production)HTTP Authorization Manager
if running against a system with HTTP basic auth in place.jmeter -n -t blacklight-tmp.jmx -l trialname.jtl -e -o report-trialname
User Defined Variables
panel, set the value of threads
to the initial number of simultaneous users you want to simulate, and the value of loops
to the number of times you want each simulated user to run through the suite of pages. Save your changes.jmeter -n -t blacklight-tmp.jmx -l trialname.jtl -e -o report-trialname
jmeter/smoke-test.jmx
from the file menu.HTTP Authorization Manager
if running against a system with HTTP basic auth in place.