Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Rails 3 A/B Split Test System Without Redis?

I'm looking for an easy way to integrate split testing into my Rails 3 application. I've researched and found two alternatives that seem to be up to date for Rails 3...

Vanity: http://vanity.labnotes.org

Split: https://github.com/andrew/split

However, both of these use Redis, which my employer doesn't want to use. I notice that Vanity can be used with ActiveRecord instead, but I was wondering if anyone had experience with setting up an A/B Split Test system without using Redis and what configuration would you recommend?

like image 803
Scott Kurland Avatar asked Sep 13 '11 19:09

Scott Kurland


2 Answers

I don't have experience with Split but I have setup vanity without Redis. The way to do this is to add the following to your config/environments/development.rb

Vanity.playground.establish_connection :development

Then, create a file called vanity.yml under config/ and add the following:

development:
  adapter: active_record
  active_record_adapter: mysql
  host: localhost
  database: database_name
  username: mysql_username
  password: mysql_password
like image 174
Shirjeel Alam Avatar answered Oct 02 '22 14:10

Shirjeel Alam


You can take a look at the A/Bingo plugin. It uses ActiveRecord, and there is a RailsCasts episode on how to configure and use it.

like image 31
phlipper Avatar answered Oct 02 '22 13:10

phlipper