changes for live site
This commit is contained in:
parent
72724c8da5
commit
672ebb99e2
2 changed files with 6 additions and 6 deletions
|
@ -10,7 +10,7 @@ Devise.setup do |config|
|
|||
# config.mailer = "Devise::Mailer"
|
||||
|
||||
if Rails.env.production?
|
||||
config.secret_key = 'd91ba0da95749174ee2b8922034783cbde4945409ed28b13383e18e72844beb74467f8199e9e216f0687cd2290c6e46bf74da24486d14bba3671d76c5b10c753'
|
||||
#config.secret_key = 'd91ba0da95749174ee2b8922034783cbde4945409ed28b13383e18e72844beb74467f8199e9e216f0687cd2290c6e46bf74da24486d14bba3671d76c5b10c753'
|
||||
end
|
||||
|
||||
# ==> ORM configuration
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
if Rails.env.development?
|
||||
#if Rails.env.development?
|
||||
$redis = Redis.new(:host => 'localhost', :port=> 6379)
|
||||
elsif Rails.env.production?
|
||||
uri = URI.parse(ENV["REDISTOGO_URL"])
|
||||
$redis = Redis.new(:host => uri.host, :port => uri.port, :password => uri.password)
|
||||
end
|
||||
#elsif Rails.env.production?
|
||||
# uri = URI.parse(ENV["REDISTOGO_URL"])
|
||||
# $redis = Redis.new(:host => uri.host, :port => uri.port, :password => uri.password)
|
||||
#end
|
Loading…
Reference in a new issue