Skip to content

Commit

Permalink
async activerecord stack
Browse files Browse the repository at this point in the history
  • Loading branch information
igrigorik committed Jun 19, 2010
1 parent 7db9c70 commit 72ea384
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 4 deletions.
10 changes: 9 additions & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,18 @@ source 'http://rubygems.org'

gem 'rails', '3.0.0.beta4'

# async activerecord requires
gem 'em-synchrony', :git => 'git://github.com/igrigorik/em-synchrony.git', :require => 'em-synchrony'
gem 'mysqlplus', :git => 'git://github.com/oldmoe/mysqlplus.git', :require => 'mysqlplus'
gem 'em-mysqlplus', :git => 'git://github.com/igrigorik/em-mysqlplus.git', :require => 'em-activerecord'

gem 'rack-fiber_pool', :require => 'rack/fiber_pool'


# Bundle edge Rails instead:
# gem 'rails', :git => 'git://github.com/rails/rails.git'

gem 'sqlite3-ruby', :require => 'sqlite3'
# gem 'sqlite3-ruby', :require => 'sqlite3'

# Use unicorn as the web server
# gem 'unicorn'
Expand Down
2 changes: 2 additions & 0 deletions config.ru
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
# This file is used by Rack-based servers to start the application.

require ::File.expand_path('../config/environment', __FILE__)

use Rack::FiberPool
run AsyncRails3::Application
4 changes: 2 additions & 2 deletions config/database.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# SQLite version 3.x
# gem install sqlite3-ruby (not necessary on OS X Leopard)
development:
adapter: sqlite3
database: db/development.sqlite3
adapter: em_mysqlplus
database: widgets
pool: 5
timeout: 5000

Expand Down
2 changes: 2 additions & 0 deletions config/environments/development.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,6 @@

# Don't care if the mailer can't send
config.action_mailer.raise_delivery_errors = false

config.threadsafe!
end
2 changes: 1 addition & 1 deletion config/routes.rb
Original file line number Diff line number Diff line change
Expand Up @@ -54,5 +54,5 @@

# This is a legacy wild controller route that's not recommended for RESTful applications.
# Note: This route will make all actions in every controller accessible via GET requests.
# match ':controller(/:action(/:id(.:format)))'
match ':controller(/:action(/:id(.:format)))'
end

0 comments on commit 72ea384

Please sign in to comment.