Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Script to run the internal app of Hyrax (and thus ease testing a bit)
  1. Open Terminal 1
  2. cd /path/to/hyrax
  3. rake engine_cart:regenerate -- Rebuild the internal app; May not be necessary
  4. Terminal 1: rake engine_cart:server -- Analogue to cd .internal_test_app; rails s
  5. Open Terminal 2
  6. cd cd /path/to/hyrax
  7. fcrepo_wrapper -v -p 8984 --no-jms
  8. Open Terminal 3
  9. cd cd /path/to/hyrax
  10. solr_wrapper -v -d solr/config/ -n hydra-development -p 8983
@danhorst

This comment has been minimized.

Copy link

@danhorst danhorst commented Dec 13, 2016

This is similar to the Sufia Developer Documentation but concise and therefore helpful.

@jeremyf

This comment has been minimized.

Copy link
Owner Author

@jeremyf jeremyf commented Jan 3, 2017

If you want to run Hyrax individual tests:

  1. Open Terminal 1
  2. cd /path/to/hyrax
  3. fcrepo_wrapper -v -p 8986 --no-jms
  4. Open Terminal 2
  5. cd /path/to/hyrax
  6. solr_wrapper -v -d solr/config/ -n hydra-test -p 8985 # You may need to run solr_wrapper clean
  7. Open Terminal 3
  8. cd /path/to/hyrax
  9. rspec path/to/spec.rb
@laritakr

This comment has been minimized.

Copy link

@laritakr laritakr commented Nov 29, 2017

Just a note that solr now needs to be run within the internal_app directory, not just within the hyrax directory

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.