-
Notifications
You must be signed in to change notification settings - Fork 51
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
Unify env loading #163
Labels
Comments
actually envrc can be used along with dotenv https://github.com/akash-network/akash-api/blob/main/.envrc#L5 |
ygrishajev
added a commit
that referenced
this issue
Oct 3, 2024
ygrishajev
added a commit
that referenced
this issue
Oct 3, 2024
ygrishajev
added a commit
that referenced
this issue
Oct 3, 2024
ygrishajev
added a commit
that referenced
this issue
Oct 3, 2024
ygrishajev
added a commit
that referenced
this issue
Oct 3, 2024
ygrishajev
added a commit
that referenced
this issue
Oct 3, 2024
ygrishajev
added a commit
that referenced
this issue
Oct 3, 2024
ygrishajev
added a commit
that referenced
this issue
Oct 3, 2024
ygrishajev
added a commit
that referenced
this issue
Oct 3, 2024
ygrishajev
added a commit
that referenced
this issue
Oct 8, 2024
ygrishajev
added a commit
that referenced
this issue
Oct 8, 2024
ygrishajev
added a commit
that referenced
this issue
Oct 8, 2024
ygrishajev
added a commit
that referenced
this issue
Oct 8, 2024
ygrishajev
added a commit
that referenced
this issue
Oct 8, 2024
ygrishajev
added a commit
that referenced
this issue
Oct 8, 2024
ygrishajev
added a commit
that referenced
this issue
Oct 8, 2024
ygrishajev
added a commit
that referenced
this issue
Oct 8, 2024
ygrishajev
added a commit
that referenced
this issue
Oct 8, 2024
ygrishajev
added a commit
that referenced
this issue
Oct 8, 2024
ygrishajev
added a commit
that referenced
this issue
Oct 8, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Problem Statement
Currently, our project's configuration management is fragmented; some settings are loaded from JSON files, others from
.env
files, and some configurations are hardcoded within the application. This inconsistency can lead to difficulties in maintaining and scaling our environment management effectively.Objective
To streamline and unify configuration management across the entire project, transitioning all configurations to utilize environment files that are managed through
direnv
. Ifdirenv
proves incompatible or suboptimal, especially in diverse development environments including Windows, we will fall back to usingdotenv
. This approach aligns with the methods used by our core team and enhances consistency across different development environments.Task Details
Research and Feasibility Study
direnv
for managing environment variables in a Node.js context and assess its support across different operating systems, including Windows.direnv
can be integrated seamlessly with Node.js.direnv
setup is compatible with Windows or provide alternative setup instructions for Windows users.Fallback Plan:
dotenv
Implementationdotenv
ifdirenv
integration fails to meet functional or compatibility criteria.dotenv
to manage environment variables, loading them from.env
files at application startup.dotenv
as an alternative todirenv
, maintaining the ease of configuration management across environments.Implementation of Environment Management Solution
direnv
ordotenv
)..env
files across different local development environments automatically..env
files.Distinct Environment Files for Testing
.env.unit.tests
for unit testing with Jest and.env.functional.test
for functional testing with either Cypress or Playwright.Update Documentation
Update CI Configuration
.env
files during automated test runs and deployments.Task Checklist
direnv
compatibility with Node.js and assess cross-platform support.dotenv
as a fallback option ifdirenv
is unsuitable..env
files for unit and functional tests.This task is crucial for maintaining a consistent and secure configuration management strategy across our development environments, facilitating easier maintenance and scalability of our application settings.
The text was updated successfully, but these errors were encountered: