We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Is there any way to parse this first with ERB (using Rails)?
Similar to how yml files work:
url: <%= ApplicationConfig.defaults("REDIS_URL") %> channel_prefix: threadable_api_production
The text was updated successfully, but these errors were encountered:
i've been using yml files with config_for(:the_thing) to get the ENV files into rails
yml
config_for(:the_thing)
# config/the_thing.yml shared: base_url: <%= ENV["BASE_URL"] %> admin_password: <%= ENV["ADMIN_PASSWORD"] %>
does this get you what you need? rather than trying to run ruby and interpolate in the .env file
.env
Sorry, something went wrong.
@gcentauri I referenced yml files in my question…
@benlieb there is not erb+yaml support built into dotenv, but you could pretty easily load the file yourself:
Dotenv.update YAML.load(ERB.new(Dotenv::Rails.root.join('.env.yml').read).result)
No branches or pull requests
Is there any way to parse this first with ERB (using Rails)?
Similar to how yml files work:
The text was updated successfully, but these errors were encountered: