-
Notifications
You must be signed in to change notification settings - Fork 1
Running Scholar 3 locally in production mode
Katie Macke edited this page Oct 6, 2017
·
1 revision
- Make sure you have ClamAV installed
- Uncomment
clamav
from the Gemfile - Run
bundle install
All file are in config/
Change the production url to http://127.0.0.1:8983/solr/hydra-production
Change the production url to match what you used in the solr.yml
file
Change the production url to http://127.0.0.1:8984/rest
Add the following to your doi.yml
production:
username: apitest
password: apitest
shoulder: doi:10.5072/FK2
url: https://ezid.cdlib.org
- set
config.consider_all_requests_local = true
(allows you to see full error messages) - set
config.assets.compile = true
(Uses assets from the pipeline)
- Run
RAILS_ENV=production rails db:migrate
- Start Fedora:
fcrepo_wrapper -p 8984
- Start Solr:
solr_wrapper -d solr/config/ --collection_name hydra-production
- Start Redis:
redis-server
- Start Sidekiq:
bundle exec sidekiq -c 1 -q ingest -q default -q event -L log/sidekiq.log -C config/sidekiq.yml -e production
- Start Rails
RAILS_ENV=production rails server