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

How to override plugin alias #59

Closed
jessedobbelaere opened this issue Dec 18, 2016 · 2 comments
Closed

How to override plugin alias #59

jessedobbelaere opened this issue Dec 18, 2016 · 2 comments

Comments

@jessedobbelaere
Copy link

Currently my env variables in my app look like DOKKU_MARIADB_APP_NAME_DB_PORT. I'm looking to override the prefixed alias DOKKU_MARIADB, because Symfony framework only listens to env variables prefixed with SYMFONY__.

Is it the case that this prefix comes from PLUGIN_ALT_ALIAS in the config? I'm struggling a bit to override the PLUGIN_ALT_ALIAS env variable from the config. How would you do that?
With dokku config:set ?

@josegonzalez
Copy link
Member

You can't do that at this time, and the only way to do it is via dokku/dokku-redis#64, which isn't being s on at this time due to monetary constraints.

Why not just read the DATABASE_URL like any other framework?

@jessedobbelaere
Copy link
Author

Hmm ok no problem! For now I can just extract the credentials from the database_url and fill in the user & password in my app's parameters.yml file. It's a bit less secure.

I'm using a CMS based on Symfony framework. It uses a parameters.yml file with fields for host, user, password, port, etc. So no database_url can be used. Besides, Symfony is only able to use the env variables that start with SYMFONY__. Only in the most recent version, they added env variables support: https://symfony.com/blog/new-in-symfony-3-2-runtime-environment-variables

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

No branches or pull requests

2 participants