Search the contents of GitHub Enterprise wikis.
We welcome your feedback and contributions.
-
install vagrant
-
clone the repository:
-
install vagrant cachier
vagrant plugin install vagrant-cachier
-
enter the repo directory:
cd github-wiki-search
-
copy
settings_example.py
tosettings.py
and modify for your installation -
start the virtualmachine
vagrant up
-
ssh into the virtualmachine
vagrant ssh
-
run the provisioning script
sudo /vagrant/provision/provision.py
-
run the sync script
/vagrant/server/sync.py
-
visit the search page at
-
install dependencies:
npm install
-
pull in Bower components:
grunt vendor
-
compile JavaScript and LESS files:
grunt
-
update dist folder with newly compiled assets:
grunt dist
Or use grunt serve
. This will run both commands when commonly edited front end files have changed. It also sets up a local server on port 8000
for previewing the front end.
If your index isn't updating quite right, it may help to drop the index first. One example we found of this is where the mapping file wasn't updating correctly during the index process unless we dropped the index beforehand.
- Drop the existing index:
curl -XDELETE http://search.demo.cfpb.gov/search/_all/_all/
- Run a python script to rebuild everything
./server/index.py