-
Notifications
You must be signed in to change notification settings - Fork 2
Common Tasks
Thomas Johnson edited this page May 1, 2018
·
14 revisions
-
Start Solr, Fedora, and web servers hydra:server
- Open a separate terminal where you can leave the servers running
- From the root of your Hyrax project, run
rails hydra:serverto start Solr, Fedora, and the Web server
-
Start Solr, Fedora servers for you test environment hydra:test_server
- Open a separate terminal where you can leave the servers running
- From the root of your Hyrax project, run
rails hydra:test_serverto start Solr, Fedora, and the Web serverALTERNATE Instead of leaving your test servers running using the command in 3. You can start your servers each time using
rails ciand Solr and Fedora will start before running the tests and then shut down automatically after the test suite has run
-
Start a Rails console
- Use
rails consoleto enter the console (orrails cfor shorthand) - Type
exitwhen you're done to return to the command line
- Use
-
Fix Solr if you get an error like
ERROR: Core 'hydra-test' already exists!- Clear the test solr instance using
rm -rf tmp/solr-test/server/solr/hydra-test -
ALTERNATE Try
solr_wrapper --config config/solr_wrapper_test.yml clean - Try
rails ciagain and things should work; if not, ask for help!
- Clear the test solr instance using