Skip to content
This repository has been archived by the owner on Apr 23, 2019. It is now read-only.

Document how to rebuild the whoosh index #212

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 27 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,33 @@ With both commands, if you have overridden the database name (using the
`LIGHTHOUSE_DB` environment variable), you will need to replace `lighthouse`
with that.

### Rebuild the Whoosh index

Once restored you will need to rebuild the search index, so that searching
yields results that aren't out of date.

The easiest way to do this to trigger the `Deploy Lighthouse` job on Jenkins,
as rebuilding the index is a standard part of deployment.

To do this manually:

1. SSH in to the lighthouse box

> ssh [email protected]

2. Become the `lighthouse` user

ec2-user@~ > sudo su - lighthouse

3. Activate the virtualenv that contains lighthouses dependencies

lighthouse@~ > cd /opt/lighthouse/app
lighthouse@app > source /opt/lighthouse/virtualenv/activate

4. Run the `rebuild_index` command

lighthouse@app > python manage.py rebuild_index

## How to modify static assets

Lighthouse contains some "static" content assets which are not generated at
Expand Down