2

Heroku 非常擅长让事情变得简单......但这......不是那么多。你如何从 heroku gem 切换到新的工具带?以下是我采取的步骤:

 $ heroku version: heroku-gem/2.32.5 (x86_64-darwin11.4.1) ruby/1.9.3 autoupdate
 removed 'gem "heroku"' from gem file
 added 'gem "heroku-api"' to gemfile
 deleted gemfile.lock
 $ bundle install
 installed toolbelt via the package installer
 $ heroku login ... returns "Authentication successful"
 $ heroku version: STILL RETURNS heroku-gem/2.32.5 (x86_64-darwin11.4.1) ruby/1.9.3 autoupdate

两个问题:

 #1 Why is my version still using the heroku-gem after taking the steps above?
 #2 Where do I put "heroku = Heroku::API.new(:api_key => API_KEY)" for use with the heroku-api gem?
4

1 回答 1

2

删除 gemfile.lock 文件并没有删除它。我不得不运行 gem uninstall heroku (我有 9 个版本)......之后,heroku 版本显示在工具带上。

于 2012-10-25T18:54:40.870 回答