Permalink
Browse files

made rackup file work with connecting gridfs to slave mongo instance

  • Loading branch information...
1 parent c62bbe2 commit 205b46381462c7c7617324a938e8eb1f5ae4e7dc Jonathan Hoyt committed Mar 24, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 config.ru
View
@@ -6,7 +6,7 @@ use Rails::Rack::LogTailer
use Rails::Rack::Static
gem 'jnunemaker-rack-gridfs', '0.3.0'
require 'rack/gridfs' # configure the rack-gridfs adapter
-use Rack::GridFS, :hostname => 'localhost', :port => 27017, :database => "jukeman-#{RAILS_ENV}", :prefix => "gridfs"
+use Rack::GridFS, :hostname => 'localhost', :port => 27017, :database => "jukeman-#{RAILS_ENV}", :prefix => "gridfs", :slave_ok => true
# setup the dispatcher
run ActionController::Dispatcher.new

0 comments on commit 205b463

Please sign in to comment.