Linking via an alias --alias
forces the use of _URL
as the environment variable suffix
#234
Labels
--alias
forces the use of _URL
as the environment variable suffix
#234
Description of problem
When linking a postgres database to an app using the
--link-flags
argument, the plugin appends_URL
to the environment variable name specified in the argument.This causes an issue when the application you are linking does not use
_URL
as the suffix of the DSN URL. In our case that is Metabase, which usesMB_DB_CONNECTION_URI
Steps to Reproduce
dokku postgres:link metabase metabase -a MB_DB_CONNECTION_URI
Actual Results
Sets the environment variable
MB_DB_CONNECTION_URI_URL
on the metabase applicationExpected Results
MB_DB_CONNECTION_URI
would have been set.The work around is to set the environment variable via the app config. e.g.
dokku config:set metabase MB_DB_CONNECTION_URI=$(dokku postgres:info metabase --dsn)
The text was updated successfully, but these errors were encountered: