figaro

来源:互联网 发布:程序员人资面试题 编辑:程序博客网 时间:2024/06/03 19:45

Simple, Heroku-friendly Rails app configuration using ENV and a single YAML file
https://github.com/laserlemon/figaro/

gem "figaro"
ExampleGiven the following configuration file:# config/application.ymlpusher_app_id: "2954"pusher_key: "7381a978f7dd7f9a1117"pusher_secret: "abdc3b896a0ffb85d373"You can configure Pusher in an initializer:# config/initializers/pusher.rbPusher.app_id = ENV["pusher_app_id"]Pusher.key    = ENV["pusher_key"]Pusher.secret = ENV["pusher_secret"]