Fix usage of environment variables for Heroku credentials.
This commit is contained in:
parent
4a9da56341
commit
ce96d86cdd
@ -38,8 +38,8 @@ module Locomotive
|
||||
end
|
||||
|
||||
def open_heroku_connection
|
||||
login = self.config.heroku[:login] || ENV['HEROKU_LOGIN']
|
||||
password = self.config.heroku[:password] || ENV['HEROKU_PASSWORD']
|
||||
login = ENV['HEROKU_LOGIN'] || self.config.heroku[:login]
|
||||
password = ENV['HEROKU_PASSWORD'] || self.config.heroku[:password]
|
||||
|
||||
self.heroku_connection = ::Heroku::Client.new(login, password)
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user