use rack gridfs
This commit is contained in:
		
							parent
							
								
									c68c563fb0
								
							
						
					
					
						commit
						2945e14385
					
				
							
								
								
									
										1
									
								
								Gemfile
								
								
								
								
							
							
						
						
									
										1
									
								
								Gemfile
								
								
								
								
							| 
						 | 
				
			
			@ -26,6 +26,7 @@ gem "mongo_session_store-rails3", '3.0.6'
 | 
			
		|||
gem 'nokogiri'
 | 
			
		||||
 | 
			
		||||
gem 'fb_graph'
 | 
			
		||||
gem 'rack-gridfs'
 | 
			
		||||
gem 'radius'
 | 
			
		||||
gem 'rake'
 | 
			
		||||
# gem 'remotipart'
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -6,6 +6,7 @@ Orbit::Application.routes.draw do
 | 
			
		|||
  end
 | 
			
		||||
 | 
			
		||||
  mount Resque::Server, :at => "/admin/resque"
 | 
			
		||||
  mount Rack::GridFS::Endpoint.new(:db => Mongoid.database,:lookup=>:path), :at => "gridfs"
 | 
			
		||||
 | 
			
		||||
  # routes for sinatra app
 | 
			
		||||
  match '/site/set_registered', :to => CentralServerExchangeApp  
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue