在 MAC OS X 1.7.2 上
我尝试按照说明https://devcenter.heroku.com/articles/migrating-from-shared-database-to-heroku-postgres
所以我尝试在 my-app 上运行命令:
$ heroku addons:add heroku-postgresql:dev -a my-app
-----> Adding heroku-postgresql:dev to test-biowatts... failed
! You're running an outdated version of the Heroku gem/toolbelt that cannot perform the requested action. Please update your client and try again.
所以我尝试更新 Heroku
$ heroku update
! update is not a heroku command. See 'heroku help'.
在哪里
$ heroku version
heroku-gem/2.4.0
问题更新 1 - Heroku 更新现在给出不同的信息
$ heroku update
! `heroku update` is only available from Heroku Toolbelt.
! Download and install from https://toolbelt.heroku.com
所以我下载并安装了工具带,但 heroku 更新仍然给出相同的消息
问题更新 2 - 删除了安装的 heroku TOOLBELT - 已解决
sudo rm -rf /usr/local/heroku
sudo rm -rf /usr/bin/heroku
gem uninstall heroku
然后安装https://toolbelt.heroku.com/
重启终端
它奏效了!
干杯,
乔尔