【问题标题】:testing with Vanity and with MySQL?使用 Vanity 和 MySQL 进行测试?
【发布时间】:2011-05-31 08:17:27
【问题描述】:
我正在尝试找到一个允许我进行 AB 测试的框架,我发现了几个:ABingo、Vanity 和 7minutes AB。我喜欢 ABingo 和 Vanity,并开始更喜欢 Vanity,但不好的是 Vanity 需要 Redis(?这是真的吗?)。我只是想知道是否有一种解决方法可以将 Vanity 与 MySQL 一起使用。
【问题讨论】:
标签:
ruby-on-rails
ruby-on-rails-3
ruby-on-rails-plugins
vanity
【解决方案1】:
不,Vanity 也可以与 MySQL 一起使用。要让它在您的开发环境中工作,只需将以下内容添加到您的 config/environments/development.rb
Vanity.playground.establish_connection :development
然后,在 config/ 下创建一个名为 vanity.yml 的文件并添加以下内容:
development:
adapter: active_record
active_record_adapter: mysql
host: localhost
database: vanity
username: my_username
password: my_password