Kloadut / dokku-pg-plugin

PostgreSQL plugin for Dokku
201 stars 75 forks source link

Invalid port number in postgresql:link if app and db names is different. #62

Open demchenkoe opened 9 years ago

demchenkoe commented 9 years ago

get_postgresql_id use variable $APP as name of database. But application name and name of database may be different. In this case get_postgresql_id return invalid containter id.

Pluto1010 commented 9 years ago

I have the same problem.

As a workaround I have renamed my databases to match the application names now.

Is it possible that the process of creating a root password is also disturbed by this issue? My DATABASE_URL contains a password thats not accepted in the given port for root. I have a seconds database and tried its password on the URL in my DATABASE_URL variable and it worked.