Search Engine Notes
- Running on Ruby 1.9.2/3.
- Using Picky.
- Runs on Heroku (http://podsearch.heroku.com). TODO We might need to move this to cocoapods.heroku.com.
git submodule update --init
gem install foreman
Run locally with foreman
Deploying to Heroku
git push heroku master
We use one ENV variable (
HOOK_PATH) to set the hook path we use in the Specs repo’s post-receive-hook to update the search engine’s index:
heroku config:add HOOK_PATH=some_garbled_hook_path.
This calls an URL on the app which causes it to update the search engine index by downloading the Specs zip file and indexing from the unzipped content, replacing the old index.
(Note: It’s not secure against brute force, man-in-the-middle etc., but a simple security to discourage DoS)
To change HOOK_PATH:
heroku config:add HOOK_PATH=some_other_garbled_hook_path
- Update the post-receive-hook in the Specs repo to the new garbled path.