Skip to content
dgpokl edited this page Jun 18, 2012 · 3 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.

Clone this wiki locally