Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to link Postgres with precise environment variable name #196

Open
cosmin opened this issue Dec 27, 2022 · 3 comments
Open

Unable to link Postgres with precise environment variable name #196

cosmin opened this issue Dec 27, 2022 · 3 comments

Comments

@cosmin
Copy link

cosmin commented Dec 27, 2022

Description of problem

Unable to link Postgres with custom environment variable name, _URL gets appended to the end of the name specified with -a.

I can work around this by modifying the app, but it would be much better if I didn't have to modify the app and instead I could have Dokku link with a precise environment variable name.

How reproducible

Steps to Reproduce

  1. dokku postgres:link myappdb myapp -a DATABASE_SERVER
  2. dokku config:show myapp

Actual Results

DATABASE_SERVER_URL:  postgres://postgres:xxxxxxxxxx@dokku-postgres-myappdb:5432/myappdb

Expected Results

DATABASE_SERVER:  postgres://postgres:xxxxxxxxxx@dokku-postgres-myappdb:5432/myappdb
@josegonzalez
Copy link
Member

Yeah this is by design at the moment. The _URL always gets appended.

@josegonzalez josegonzalez transferred this issue from dokku/dokku-postgres Dec 27, 2022
@cosmin
Copy link
Author

cosmin commented Dec 28, 2022

@josegonzalez why did this get moved to dokku-redis since it's about the postgres plugin. Was this an accident?

@cosmin cosmin closed this as completed Dec 28, 2022
@cosmin cosmin reopened this Dec 28, 2022
@josegonzalez
Copy link
Member

No this was purposeful. I use this issue tracker to track all datastore-wide enhancement requests and bug fixes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants