Skip to content

Using hydra jetty as a submodule with custom Fedora and Solr configs

dchandekstark edited this page Mar 1, 2013 · 2 revisions

In your project root, add hydra-jetty as a submodule:

$ git submodule add https://github.com/projecthydra/hydra-jetty.git jetty

Create directories for your Fedora and Solr configurations and copy in the files as shown:

fedora_conf/
    conf/
        development/
            fedora.fcfg
        test/
            fedora.fcfg

solr_conf/
    solr.xml
    conf/
        schema.xml
        solrconfig.xml

Alternatively, symlink the config files to other locations.

In order to copy your configs to hydra-jetty, run:

$ rake jetty:config

Be sure to add ignore = dirty to the submodule config in .gitmodules:

[submodule "jetty"]
        path = jetty
        url = https://github.com/projecthydra/hydra-jetty.git
        ignore = dirty

If you want to pin hydra-jetty to a specific commit:

$ cd jetty
$ git checkout [SHA]

Commit your changes to your git repo.

Clone this wiki locally