-
-
Notifications
You must be signed in to change notification settings - Fork 137
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
Config: support .env.testing and .env.e2e files #497
Comments
@LoicPoullain I'm struggling to understand the utility of this since there's already a comprehensive way for adding configurations to a foal app. I suggest we stick to the existing approach and add a new |
This will allow us to split sensitive information and simple settings in two different files if we want to (one committed and the other not). There is no obligation to use this approach and we will still be able to only use Another use case can be to start the app with our production DB. For example, by adding a This is not a priority though. I'll remove it from August release to focus on social auth. |
Resolved in v2 |
Issue
Currently, Foal's configuration system supports environment variables, the
.env
file and JSON and YAML files in theconfig/
directory. In some situations, we may also want to have another uncommitted file.env.testing
to store db credentials during testing.Solution
Support
.env.{NODE_ENV}
filesThe text was updated successfully, but these errors were encountered: