Skip to content
wtfiwtz edited this page Jul 4, 2012 · 2 revisions

To Use octopus inside rails:

Rails 2.x

Install the octopus gem:

sudo gem install ar-octopus

Add this line to environment.rb:

config.gem 'ar-octopus', :lib => 'octopus'

Rails 3.x

Add this line to Gemfile:

gem 'ar-octopus', :require => 'octopus'

Runs a bundle install:

bundle install

Octopus is working! now you could start using it, by creating a shards.yml file, see this page.

To use Rails 3.2.x, please use the master branch:

gem 'ar-octopus', :git => "git://github.com/tchandy/octopus.git", :require => "octopus"
Clone this wiki locally