Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 19 lines (12 sloc) 1.395 kb
9fd12cb @floehopper Touch README to trigger a build.
floehopper authored
1 # Whitehall App
d222c6b @chrisroos Update README.md
chrisroos authored
2
31dcb2c @floehopper Update README with more information about running search locally.
floehopper authored
3 ## Using local assets
4
4310bda @floehopper Some fixes for README.
floehopper authored
5 * Set `STATIC_DEV` to point to your local instance of the `static` app when running the `whitehall` app e.g. `STATIC_DEV=http://static.dev`
31dcb2c @floehopper Update README with more information about running search locally.
floehopper authored
6
d222c6b @chrisroos Update README.md
chrisroos authored
7 ## Getting search running locally
8
31dcb2c @floehopper Update README with more information about running search locally.
floehopper authored
9 The Whitehall app relies on a separate instance of [Rummager](https://github.com/alphagov/rummager) for document search. The default (citizen) configuration is overridden by the `whitehall-rummager` project in the deployment repository.
d222c6b @chrisroos Update README.md
chrisroos authored
10
11 To use a local copy of Rummager you'll need to:
12
4310bda @floehopper Some fixes for README.
floehopper authored
13 * Tell Rummager to use the whitehall Solr core by setting `:path: "/solr/whitehall-rummager"` in `rummager/solr.yml`.
14 * Tell Rummager to listen for requests on the whitehall path prefix by setting `:path_prefix: "/government"` in `rummager/router.yml`.
31dcb2c @floehopper Update README with more information about running search locally.
floehopper authored
15 * Set `RUMMAGER_HOST` to point to the local instance of Rummager (e.g. `export RUMMAGER_HOST=http://rummager.dev` in `.powrc`).
16 * You'll also need to set `RUMMAGER_HOST` when using the Rummager rake tasks e.g. `RUMMAGER_HOST=http://rummager.dev rake rummager:index`.
17 * Optional: if you want to hit the Rummager app directly from a browser (i.e. not using `Accept: application/json`), e.g. to see how the citizen app works, then you may want to set `SLIMMER_ASSET_HOST` to point to your local instance of the `static` app.
18
4310bda @floehopper Some fixes for README.
floehopper authored
19 To use a local copy of Solr - see the instruction in the Rummager [README.md](https://github.com/alphagov/rummager).
Something went wrong with that request. Please try again.