문제

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.

도움이 되었습니까?

해결책

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.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top