To edit pages or tickets please login with username/password: aaf/aaf

Changeset 296

Show
Ignore:
Timestamp:
12/16/07 21:00:13 (10 months ago)
Author:
jk
Message:

applied patch from #176 to allow for DRb over unix sockets. use socket option in ferret_server.yml

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/plugin/acts_as_ferret/config/ferret_server.yml

    r241 r296  
    22# host: where to reach the DRb server (used by application processes to contact the server) 
    33# port: which port the server should listen on 
     4# socket: where the DRb server should create the socket (absolute path), this setting overrides host:port configuration 
    45# pid_file: location of the server's pid file (relative to RAILS_ROOT) 
    56# log_file: log file (default: RAILS_ROOT/log/ferret_server.log 
  • trunk/plugin/acts_as_ferret/lib/ferret_server.rb

    r294 r296  
    1919        'log_file'  => "#{RAILS_ROOT}/log/ferret_server.log", 
    2020        'log_level' => 'debug', 
     21        'socket'    => nil, 
    2122      } 
    2223 
     
    2728        raise "malformed ferret server config" unless @everything.is_a?(Hash) 
    2829        @config = DEFAULTS.merge(@everything[RAILS_ENV] || {}) 
    29         @config['uri'] = "druby://#{host}:#{port}" if @everything[RAILS_ENV] 
     30        if @everything[RAILS_ENV] 
     31          @config['uri'] = socket.nil? ? "druby://#{host}:#{port}" : "drbunix:#{socket}" 
     32        end 
    3033      end 
    3134 

To edit pages or tickets please login with username/password: aaf/aaf