You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is fine, but it would be better if you didn't have to consider that. Sort of playing off #1, we could even move this code in. Then maybe your spec_helper.cr does something like:
Right now if you want to load a different env file based on what
Lucky::Env.name
is, then you have to use a ternary or something:This is fine, but it would be better if you didn't have to consider that. Sort of playing off #1, we could even move this code in. Then maybe your
spec_helper.cr
does something like:Then in your app, you'd have:
This method would know that if
ENV["LUCKY_ENV"]
was set to "test", then we should auto-load.env.test
. The Rails env has something similarThe text was updated successfully, but these errors were encountered: