Search code examples
ruby-on-railsrubyyamlsettingslogic

YAML anchors issue


Here is the tutorial I'm following: http://rhnh.net/2011/01/31/yaml-tutorial

I'm using the SettingsLogic gem: https://github.com/binarylogic/settingslogic

And every config file used by Settings logic works fine, but if I use the same tactics on database.yml or thinking_sphinx.yml it will not work.


Solution

  • My bad I didn't specified full stack info.

    I'm using passenger. But I missed directive RailsEnv in apache config file.

    http://www.modrails.com/documentation/Users%20guide%20Apache.html#rails_env

    By default, passenger loads production environment.

    Setting RailsEnv staging solved my problem. And now correct settings picked.