Mercurial > rsstweet
comparison config/config_init.rb @ 47:e5082c4c234d
Also allow config-file-based configuration.
author | nanaya <me@myconan.net> |
---|---|
date | Thu, 23 Apr 2015 16:05:08 +0900 |
parents | |
children | e9a6019a34ea |
comparison
equal
deleted
inserted
replaced
46:92b22027d0ae | 47:e5082c4c234d |
---|---|
1 CFG = { | |
2 :twitter => { | |
3 :consumer_key => ENV["RT_CONSUMER_KEY"], | |
4 :consumer_secret => ENV["RT_CONSUMER_SECRET"], | |
5 :access_token => ENV["RT_ACCESS_TOKEN"], | |
6 :access_token_secret => ENV["RT_ACCESS_TOKEN_SECRET"] | |
7 }, | |
8 :memcached_servers => ENV["RT_MEMCACHED_SERVERS"].try(:split, ",") | |
9 } | |
10 | |
11 config_local = File.expand_path("../config_local_#{Rails.env}.rb", __FILE__) | |
12 | |
13 require config_local if File.exist? config_local |