Envied guideline on defaults - #240
Conversation
Add guideline on how to use envied defaults.
|
👍 |
1 similar comment
|
👍 |
|
Review status: 0 of 1 files reviewed at latest revision, 1 unresolved discussion, all commit checks successful. rails.md, line 411 [r1] (raw file): enable_defaults! { ENV.fetch("RACK_ENV", "development").match(/development|test/) }? Comments from the review on Reviewable.io |
|
rails.md, line 411 [r1] (raw file): Most of the variables have same default through most of the stages. We take different approach here and redefine only the variables which must be defined for current stage, and use once defined defaults. Comments from the review on Reviewable.io |
|
@teamon lambda or proc, it really doesn't matter. @chytreg This configuration does what I believe ENVied was designed for - fail-fast when a variable is missing and provide a default for bootstrapping in dev/test environments. |
|
Review status: 0 of 1 files reviewed at latest revision, 1 unresolved discussion, all commit checks successful. rails.md, line 411 [r1] (raw file): Comments from the review on Reviewable.io |
|
Review status: 0 of 1 files reviewed at latest revision, 1 unresolved discussion, all commit checks successful. rails.md, line 411 [r1] (raw file): @chytreg This configuration does what I believe ENVied was designed for - fail-fast when a variable is missing and provide a default for bootstrapping in dev/test environments. @mkarbowiak No, I don't think so, because what is an obstacle today might not be tomorrow. I don't wont to guide someone to use explicitly: %i{ staging preprod production }.each do |stage|
group stage do
# ...
end
endIt's up to the developer in question to find the easiest and most effective solution at any time. Otherwise we would have to update guidelines with each release of ruby, rails, coffeescript, envied, and so on. Comments from the review on Reviewable.io |
|
Review status: 0 of 1 files reviewed at latest revision, 1 unresolved discussion. rails.md, line 411 [r1] (raw file): Comments from the review on Reviewable.io |
Envied guideline on defaults
Add guideline on how to use envied defaults.