-
Notifications
You must be signed in to change notification settings - Fork 1
Setup Valkyrie Prototype: Installing Blacklight
FCRodriguez7 edited this page Sep 13, 2019
·
12 revisions
- Ruby 2.5+
- Rails 5.1 - 5.2.3 (6+ does not work with Blacklight)
- Bundler 1.16+
- Installation of Postgres 11.3
If you don't have ruby installed:
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
brew install rbenv
- Do the additional commands that is printed after rbenv is installed
rbenv install 2.5.3
rbenv global 2.5.3
gem install rails -v 5.2.3
gem install bundler
- Create new rails project
rails _5.2.3_ new <project_name> -d postgresql
- Add Blacklight to the Gemfile
gem ‘blacklight’
- Run
bundle install
- Use
rails generate blacklight:install --solr_version=7.7.1
rails _5.2.3_ new <project-name> -m https://raw.github.com/projectblacklight/blacklight/master/template.demo.rb -d postgresql
rails generate blacklight:install --solr_version=7.7.1
Note: Alternative configuration includes the addition of the blacklight gem to the Gemfile, the generation of the rake task, and the database migration.