use rack gridfs

This commit is contained in:
Matt K. Fu 2013-04-19 13:23:57 +08:00
parent c68c563fb0
commit 2945e14385
2 changed files with 2 additions and 0 deletions

View File

@ -26,6 +26,7 @@ gem "mongo_session_store-rails3", '3.0.6'
gem 'nokogiri' gem 'nokogiri'
gem 'fb_graph' gem 'fb_graph'
gem 'rack-gridfs'
gem 'radius' gem 'radius'
gem 'rake' gem 'rake'
# gem 'remotipart' # gem 'remotipart'

View File

@ -6,6 +6,7 @@ Orbit::Application.routes.draw do
end end
mount Resque::Server, :at => "/admin/resque" mount Resque::Server, :at => "/admin/resque"
mount Rack::GridFS::Endpoint.new(:db => Mongoid.database,:lookup=>:path), :at => "gridfs"
# routes for sinatra app # routes for sinatra app
match '/site/set_registered', :to => CentralServerExchangeApp match '/site/set_registered', :to => CentralServerExchangeApp