require './boot'
require 'rack/static'

use Rack::Static, urls: %w(/favicon.ico /images /stylesheets), root: 'public'
run Bouncer.new

require './boot'
require 'rack/static'

use Rack::Static, urls: %w(/favicon.ico /images /stylesheets), root: 'public'
use ActiveRecord::ConnectionAdapters::ConnectionManagement
run Bouncer.new

Use middleware to release the database connection after each request
Use middleware to release the database connection after each request

Without this, Active Record's pool of database connections gets exhausted
after a certain number of requests.
