Sha256: 86086a3b79dbdc77077d74c69dd845e18165ffb296e27d9e1f1e73b23927ad0b
Contents?: true
Size: 712 Bytes
Versions: 34
Compression:
Stored size: 712 Bytes
Contents
# Require the gem. This loads the search framework. # require 'picky' # Load your application. This requires the following files in # # * app/application.rb # # (in that order). # Picky::Loader.load_application # Load the indexes into the memory. # Picky::Indexes.reload # 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 BookSearch
Version data entries
34 entries across 34 versions & 1 rubygems