Skip to content

Running Scholar 3 locally in production mode

Katie Macke edited this page Oct 6, 2017 · 1 revision

Contents

ClamAV

  1. Make sure you have ClamAV installed
  2. Uncomment clamav from the Gemfile
  3. Run bundle install

Configs

All file are in config/

solr.yml

Change the production url to http://127.0.0.1:8983/solr/hydra-production

blacklight.yml

Change the production url to match what you used in the solr.yml file

fedora.yml

Change the production url to http://127.0.0.1:8984/rest

doi.yml

Add the following to your doi.yml

production:
  username: apitest
  password: apitest
  shoulder: doi:10.5072/FK2
  url: https://ezid.cdlib.org

environments/production.rb

  • set config.consider_all_requests_local = true (allows you to see full error messages)
  • set config.assets.compile = true (Uses assets from the pipeline)

Database

  1. Run RAILS_ENV=production rails db:migrate

Starting the Server

  1. Start Fedora: fcrepo_wrapper -p 8984
  2. Start Solr: solr_wrapper -d solr/config/ --collection_name hydra-production
  3. Start Redis: redis-server
  4. Start Sidekiq: bundle exec sidekiq -c 1 -q ingest -q default -q event -L log/sidekiq.log -C config/sidekiq.yml -e production
  5. Start Rails RAILS_ENV=production rails server
Clone this wiki locally