Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

async activerecord stack

  • Loading branch information...
commit 72ea38433246cc58cd31e3863f4ed4e0c861ad28 1 parent 7db9c70
@igrigorik authored
View
10 Gemfile
@@ -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'
View
2  config.ru
@@ -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
View
4 config/database.yml
@@ -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
View
2  config/environments/development.rb
@@ -16,4 +16,6 @@
# Don't care if the mailer can't send
config.action_mailer.raise_delivery_errors = false
+
+ config.threadsafe!
end
View
2  config/routes.rb
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.