Questions tagged [environment]
The environment tag has no summary.
42 questions
5 votes
3 answers
524 views
How do I decide whether an option belongs in an environment variable, command-line option, or both?
I am working on an executable program - an application or utility. At some point, I want to introduce a new option (to be considered at run-time rather than build-time); the option may be boolean, ...
2 votes
1 answer
152 views
ASP.NET Core configuration system: Isn't the default configuration prone to naming conflicts in environment variables?
I'm trying to wrap my head around the ASP.NET Core Configuration system. If I understand the default configuration correctly, non-prefixed environment variables will override appsettings.json entries. ...
0 votes
0 answers
96 views
When does it make sense to have an implicit contract between a runtime env. and an internally used library?
┌────────────────────────────────────────────────────────────────────────────────────────────────────┐ │ ...
2 votes
2 answers
3k views
What’s the standard used to deploy .env files?
I used docker to containerize the node.js express app and used GitHub action to add the .env file in the container. I googled this method when I was doing the DEV project. But I think that if someone ...
1 vote
1 answer
645 views
How to design config files for each environment in github?
I have a list of application configs and business configs in a particular root folder inside our git repository. Below is our current structure as of now: We have a root Data folder and inside that ...
2 votes
1 answer
1k views
How to configure front-end web application from environment?
I'm working on a relatively thin front-end web application that talks to an API. Depending on where this front-end application is served from (CI server, staging server, production server, etc.) I ...
4 votes
1 answer
684 views
How to organize projects in AWS?
In our team, we are using AWS as our main cloud provider and currently, we have 3 projects hosted on their platform. We are about to have 2 more projects in the next weeks, but first, we want to ...
-1 votes
1 answer
492 views
What goes into .env file?
Working on a huge application with lots of legacy code, I often encounter environment "checks": db_name = Rails.env.production? ? 'staging_db' : 'production_db' ... desired_processes_count = Rails....