Skip to content

Instantly share code, notes, and snippets.

@jeremyf
Last active December 19, 2017 20:14
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save jeremyf/19673500dd1759c41aaecccc805e96fc to your computer and use it in GitHub Desktop.
Save jeremyf/19673500dd1759c41aaecccc805e96fc to your computer and use it in GitHub Desktop.
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
Copy link

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

@jeremyf
Copy link
Author

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
Copy link

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