Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 12 lines (10 sloc) 0.409 kb
69b4cba2 » Jonathan Hoyt
2010-01-18 moved to rack, reworked my models to use mongodb, changed the db song…
1 # RAILS_ROOT/config.ru
2 require "config/environment"
3
4 # middleware
5 use Rails::Rack::LogTailer
6 use Rails::Rack::Static
b0e5430a » Jonathan Hoyt
2010-03-23 New gridfs stuff now works, songs are tagged, and saved properly.
7 gem 'jnunemaker-rack-gridfs', '0.3.0'
69b4cba2 » Jonathan Hoyt
2010-01-18 moved to rack, reworked my models to use mongodb, changed the db song…
8 require 'rack/gridfs' # configure the rack-gridfs adapter
205b4638 » Jonathan Hoyt
2010-03-24 made rackup file work with connecting gridfs to slave mongo instance
9 use Rack::GridFS, :hostname => 'localhost', :port => 27017, :database => "jukeman-#{RAILS_ENV}", :prefix => "gridfs", :slave_ok => true
69b4cba2 » Jonathan Hoyt
2010-01-18 moved to rack, reworked my models to use mongodb, changed the db song…
10
11 # setup the dispatcher
12 run ActionController::Dispatcher.new
Something went wrong with that request. Please try again.