-
Notifications
You must be signed in to change notification settings - Fork 269
config/vanity.yml unused #277
Comments
Hi @chrisandrew thanks for using vanity!
Are you seeing an error? Can you post the error and any stack trace here?
It's to set various configuration variables. Using a separate database for vanity should work, but is not strictly necessary. |
Hey @phillbaker! If I comment all contents from vanity.yml I get this as soon as I try to run an experiment:
When both files are properly configured (as in my previous post), vanity.yml seems to be simply ignored, as all the magic happens in the "application database" (vanity DB wasn't even created) |
Hi @chrisandrew sorry this took a while to get back to you, I think this is just a matter of setting the config so Vanity knows to initialize a new connection separate from the Rails connection. The # config/vanity.yml
default: &default_vanity
adapter: active_record
active_record_adapter: default
development:
<<: *default_vanity
database: hotsite_vanity_dev
test:
<<: *default_vanity
collecting: false
database: hotsite_vanity_test
production:
adapter: active_record
active_record_adapter: postgresql
host: localhost
username: <%= ENV['DB_USER'] %>
password: <%= ENV['DB_PASSWD'] %>
database: hotsite_vanity |
Hi!
First, thank you for this great gem!
I am having a minor issue (for now): to proper bootstrap a new app I have to:
These steps seem only work if config/database.yml is properly set, and worse, they take effect by database.yml rules instead of vanity.yml, so vanity.yml is made worthless (except for complaining to not being set). Isn't the purpose of vanity.yml separate ABTest data from the app data?
Is this a know issue?
No? What am I doing wrong?
My setup:
gems:
...
rails 4.2.0
vanity 2.0.0.beta9
...
The text was updated successfully, but these errors were encountered: