Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

heroku DATABASE_URL

Tags:

heroku

On heroku, how to get the whole value of DATABASE_URL ?

When I issue a

heroku config --app APP_NAME 

I get several config parameters but the DATABASE_URL is not entirely visible

DATABASE_URL        => postgres://ruhej...s.com/oeuhenchej 

Any idea ?

like image 720
Luc Avatar asked May 10 '11 13:05

Luc


People also ask

What is DATABASE_URL in Heroku?

DATABASE_URL contains the URL your app uses to access the database. If your app already has a Heroku Postgres database and you've provisioned another one, this config var's name instead has the format HEROKU_POSTGRESQL_<COLOR>_URL (for example, HEROKU_POSTGRESQL_YELLOW_URL ).

What does Heroku PG Reset do?

pg:reset. The PostgreSQL user your database is assigned doesn't have permission to create or drop databases. To drop and recreate your database use pg:reset .


1 Answers

$ heroku config --app APP_NAME  

(The Heroku toolbelt has been updated since the question was asked; the command now shows the entire DATABASE_URL.)

like image 99
Clément Avatar answered Oct 14 '22 00:10

Clément