Changeset 296
- Timestamp:
- 12/16/07 21:00:13 (10 months ago)
- Files:
-
- trunk/plugin/acts_as_ferret/config/ferret_server.yml (modified) (1 diff)
- trunk/plugin/acts_as_ferret/lib/ferret_server.rb (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/plugin/acts_as_ferret/config/ferret_server.yml
r241 r296 2 2 # host: where to reach the DRb server (used by application processes to contact the server) 3 3 # 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 4 5 # pid_file: location of the server's pid file (relative to RAILS_ROOT) 5 6 # log_file: log file (default: RAILS_ROOT/log/ferret_server.log trunk/plugin/acts_as_ferret/lib/ferret_server.rb
r294 r296 19 19 'log_file' => "#{RAILS_ROOT}/log/ferret_server.log", 20 20 'log_level' => 'debug', 21 'socket' => nil, 21 22 } 22 23 … … 27 28 raise "malformed ferret server config" unless @everything.is_a?(Hash) 28 29 @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 30 33 end 31 34
