Skip to content
New issue

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

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

Already on GitHub? # to your account

dotenv support #189

Merged
merged 1 commit into from
Jan 15, 2022
Merged

dotenv support #189

merged 1 commit into from
Jan 15, 2022

Conversation

tongueroo
Copy link
Contributor

@tongueroo tongueroo commented Jan 15, 2022

This is a 🙋‍♂️ feature or enhancement.

  • I've added tests (if it's a bug, feature or enhancement)
  • I've adjusted the documentation (if it's a feature or enhancement)
  • The test suite passes (run bundle exec rspec to verify this)

Summary

Support loading of .env files within the current terraspace project folder.

  • .env.dev.local - Highest precedence
  • .env.dev
  • .env.local
  • .env - Lowest precedence

Context

How to Test

Create .env files and add a config/boot.rb to see env var set via .env

.env

FOO=bar-base

.env.dev

FOO=bar-dev

config/inits/printenv.rb

puts "ENV['FOO'] #{ENV['FOO'].inspect}"

Version Changes

Patch

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

Successfully merging this pull request may close these issues.

1 participant