Sha256: c646507e12dbae3dad77cce3489616aacb85d6bdd9902464dff5345ca10dfd39

Contents?: true

Size: 826 Bytes

Versions: 7

Compression:

Stored size: 826 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 indexes into the memory.
#
Indexes.load_from_cache

# TODO Decide if you want to use the Unicorn killing trick. (Good with large data sets)
#
# Use Harakiri middleware to kill worker child after X requests.
#
# Works only with web servers that fork worker children and which
# fork new children, like for example Unicorn.
#
# Rack::Harakiri.after = 50
# use Rack::Harakiri

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

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
picky-generators-1.5.2 prototypes/server/shared_unicorn/config.ru
picky-generators-1.5.1 prototypes/server/shared_unicorn/config.ru
picky-generators-1.5.0 prototypes/server/shared_unicorn/config.ru
picky-generators-1.4.3 prototypes/server/shared_unicorn/config.ru
picky-generators-1.4.2 prototypes/server/shared_unicorn/config.ru
picky-generators-1.4.1 prototypes/server/shared_unicorn/config.ru
picky-generators-1.4.0 prototypes/server/shared_unicorn/config.ru