Sha256: 5a93edfc5fafa8f0caf88cd7783742fca5499e1bc8c4cec582a7a17e861b20d4

Contents?: true

Size: 771 Bytes

Versions: 2

Compression:

Stored size: 771 Bytes

Contents

# Require the gem. This loads the search framework.
#
require 'picky'

# Load your application. This requires the following files in
# 
#  * lib/initializers/*.rb
#  * lib/tokenizers/*.rb
#  * lib/indexers/*.rb
#  * lib/query/*.rb
#
#  * app/logging.rb
#  * app/application.rb
#
# (in that order).
#
Loader.load_application

# Load the data. This loads data from cache files e.g. "some_index/*_index.dump" into Indexes[:some_index]
#
Indexes.load_from_cache

# Use Harakiri middleware to kill unicorn child after X requests.
#
# See http://vimeo.com/12614970 for more info.
#
    Rack::Harakiri.after = 50
use Rack::Harakiri

# Finalize the application and start accepting requests.
#
# Note: Needs to be the same constant name as in app/application.rb.
#
run PickySearch

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
picky-0.2.3 prototype_project/config.ru
picky-0.2.2 prototype_project/config.ru