Mercurial > rsstweet
diff config/application.rb @ 47:e5082c4c234d
Also allow config-file-based configuration.
author | nanaya <me@myconan.net> |
---|---|
date | Thu, 23 Apr 2015 16:05:08 +0900 |
parents | aa6d58c8653b |
children | 257910c60eb3 |
line wrap: on
line diff
--- a/config/application.rb Thu Apr 23 15:32:56 2015 +0900 +++ b/config/application.rb Thu Apr 23 16:05:08 2015 +0900 @@ -9,6 +9,8 @@ # require "sprockets/railtie" require "rails/test_unit/railtie" +require File.expand_path("../config_init", __FILE__) + # Require the gems listed in Gemfile, including any gems # you've limited to :test, :development, or :production. Bundler.require(*Rails.groups) @@ -32,8 +34,8 @@ config.secret_key_base = "herp a derp" config.session_store :disabled - if ENV["RT_MEMCACHED_SERVERS"] - config.cache_store = :mem_cache_store, ENV["RT_MEMCACHED_SERVERS"].split(","), { :namespace => "rsstweet" } + if CFG[:memcached_servers] + config.cache_store = :mem_cache_store, CFG[:memcached_servers], { :namespace => "rsstweet" } end end end