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?
最佳答案
删除 gemfile.lock 文件并没有解决问题。我必须运行 gem uninstall heroku (我有 9 版本)...之后,heroku 版本显示到工具带。
关于heroku - 从 heroku gem 切换到 heroku-api topolbelt,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13058428/