Skip to content

Commit

Permalink
temp2
Browse files Browse the repository at this point in the history
  • Loading branch information
Felix Holmgren committed Nov 21, 2013
1 parent a0d6b14 commit c526c7e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/heroku/command/redis_console.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,9 @@ class Heroku::Command::Redis < Heroku::Command::Base

def cli(*queries)
db_env_key = extract_option("--db") | 'REDIS_URL'
config_vars = heroku.get_config_vars
redis_url = config_vars(app)[db_env_key]
config_vars = api.get_config_vars(app)
puts "CONFIG VARS: #{config_vars}"
redis_url = config_vars[db_env_key]
return puts "No such redis (#{db_env_key}), try setting --db REDIS_URL." unless redis_url
uri = URI.parse(redis_url)

Expand Down

0 comments on commit c526c7e

Please sign in to comment.