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

Multiple "mode" application #4

Open
adorechic opened this issue Feb 15, 2017 · 0 comments
Open

Multiple "mode" application #4

adorechic opened this issue Feb 15, 2017 · 0 comments

Comments

@adorechic
Copy link
Owner

an application which has multiple mode such as web, api, admin, batch and so on, often requires different values on same ENV key.

case @mode
when :web
  DATABASE_URL = 'masterdb'
when :batch
  DATABASE_URL = 'slavedb'
end

current secret_env cannot switch value dynamically

DATABASE_URL: "user@{masterdb}"

so we have to put each keys

WEB_DATABASE_URL = 'masterdb'
BATCH_DATABASE_URL = 'slavedb'
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

1 participant