Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Heroku pg:info and pg:psql "Not found"

I'm not sure what has happened to my heroku postgres but when I try to access it with command line with pg:info and pg:psql, I get "Not found".

I even clicked on the button on heroku to create a database for my app as well.

How do I debug this? What can I try? I don't mind starting from scratch since it's for testing.

like image 562
user2345093 Avatar asked Aug 07 '13 07:08

user2345093


3 Answers

It wants the psql installed and avalibale on the command line on your local machine. On Ubuntu, I ran sudo apt-get install postgresql-client . heroku pg:psql then worked straight away.

like image 186
belteshazzar Avatar answered Sep 28 '22 08:09

belteshazzar


Try passing the appname or database name explicitly. The heroku cli tries to infer your application name from the 'heroku' git remote but if it can't find that it just returns the Not Found message.

eg;

heroku pg:info --app appname
like image 33
John Beynon Avatar answered Sep 28 '22 08:09

John Beynon


If you are one OS X you should install postgres like this :

brew install postgres

like image 32
Erik Saunier Avatar answered Sep 28 '22 07:09

Erik Saunier