Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Migrating from a Shared Database to Heroku Postgres /

Tags:

heroku

ON MAC OS X 1.7.2

I tried following the instructions https://devcenter.heroku.com/articles/migrating-from-shared-database-to-heroku-postgres

So I tried running the command on 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.

So I tried to update Heroku

$ heroku update
 !   update is not a heroku command. See 'heroku help'.

Where

$ heroku version
heroku-gem/2.4.0

QUESTION UPDATE 1 - Heroku update now gives a different message

$ heroku update
 !    `heroku update` is only available from Heroku Toolbelt.
 !    Download and install from https://toolbelt.heroku.com

so I downloaded and installed toolbelt but the heroku update still gives the same message

QUESTION UPDATE 2 - Removed heroku installed TOOLBELT - RESOLVED

sudo rm -rf /usr/local/heroku 
sudo rm -rf /usr/bin/heroku
gem uninstall heroku

then installed https://toolbelt.heroku.com/

Restarted terminal

AND IT WORKED!

Cheers,

joel

like image 827
zabumba Avatar asked May 19 '26 13:05

zabumba


1 Answers

Have you tried gem update heroku?

If you are using Mac OSX mountain lion. Maybe you should better use heroku toolbelt. I had almost same issue, and it fixed after I installed Heroku toolbelt.

like image 56
Atsuhiro Teshima Avatar answered May 23 '26 14:05

Atsuhiro Teshima



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!