Skip to content
Anna Carey edited this page Apr 22, 2016 · 3 revisions

To Use octopus inside rails:

Rails 2.x

Currently, Octopus doesn't support Rails 2. If you need support for rails 2, please use the version 0.5.0.

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