Skip to content

Rake Tasks in Hydra Head

jcoyne edited this page Apr 11, 2013 · 3 revisions

This guide is known to work with hydra-head version 6.0.0.
Please update this wiki to reflect any other versions that have been tested.

Getting info about the rake tasks from the command line

rake -T

To narrow down the output, use grep. For example:

rake -T | grep hy

hydra:jetty Tasks

Prerequisite: You must have the following lines in your Gemfile

gem 'hydra-head'
gem 'jettywrapper'

The main tasks: load, start, stop

  rake hydra:jetty:load                 # Copies the default SOLR config files and starts up the fedora instance.
  rake jetty:start                      # Starts the bundled Hydra Testing Server
  rake jetty:stop                       # Stops the bundled Hydra Testing Server

Subtasks: config, config_fedora, config_solr

  rake hydra:jetty:config               # Copies the default Solr & Fedora configs into the bundled Hydra Testing Server
  rake hydra:jetty:config_fedora        # Copies a custom fedora config for the bundled Hydra Testing Server
  rake hydra:jetty:config_solr          # Copies the default SOLR config for the bundled Hydra Testing Server
Clone this wiki locally