Skip to main content
11 votes

How do I decide whether an option belongs in an environment variable, command-line option, or both?

The decision between command-line option and environment variable should primarily be driven by what is convenient for the end-user of the application and the expected usage patterns of the option. ...
Bart van Ingen Schenau's user avatar
6 votes

How to organize projects in AWS?

AWS Organizations is the standard approach to managing a hierarchy of accounts. However, it does not allow billing to be consolidated at arbitrary points in the organization; it's a tree, not a graph. ...
guest's user avatar
  • 131
6 votes
Accepted

Environment configuration vs domain detection

You should definitely modify the CI to correctly set the configuration for the environment rather than trying to work it out from the Url at runtime. You should use Ocotpus Deploy to replace config ...
Ewan's user avatar
  • 84.4k
5 votes
Accepted

Having Staging and Production environments with different network virtualization

The point of staging is for testing. The point of testing is to reduce risk. Any differences between staging and production are areas of risk. The risk may be large or small depending on your ...
John Wu's user avatar
  • 27k
5 votes
Accepted

What are "orthogonal" environment variables? [12-factor app]

The key to understanding what the author is saying is found in the previous paragraph: Another aspect of config management is grouping. Sometimes apps batch config into named groups (often called “...
David Arno's user avatar
  • 39.6k
5 votes

How to manage working directory in interactive development environments like Jupyter Notebook?

Excellent question. This is not just a problem of Jupyter Notebooks or Python. It is always a problem when code X calls a 3rd party script Y, and Y requires a special current directory or even worse, ...
Doc Brown's user avatar
  • 220k
5 votes
Accepted

Decisions according to environment

It looks like the refactoring you are proposing to change from what you say is bad practice to what you say is good is what Fowler calls replace conditional with polymorphism. Whether or not its an ...
bdsl's user avatar
  • 3,924
3 votes

How do I handle 2 or more parallel development environments on different machines?

I've used 1,2 and 3 and 1 is by far the best. RDP is generally fine, but it relies on the other computer being a 'server' and turned on. If you develop on both machines you are going to get divirgence ...
Ewan's user avatar
  • 84.4k
3 votes

What’s the standard used to deploy .env files?

Secrets can be stored in some sort of vault. For example, for AWS it's a secrets manager service. What this does is move the secrets from your environment file to a central location. That way no ...
Jon Raynor's user avatar
  • 11.8k
3 votes
Accepted

How to design config files for each environment in github?

Dev/stage/prod is just one case of site-specific configuration, which most software that I'm familiar with handles using application defaults and site overrides. You could have top folders application ...
Hans-Martin Mosner's user avatar
2 votes

Environment configuration vs domain detection

The obvious answer would be easier configuration; if say you need to add yet another environment youd only need to make a new environment file, rather than modify and recompile the code, or say you ...
TurtleKwitty's user avatar
2 votes

Cheap and effective way to secure a transport permit of the wildlife to be prevent being reused

Tech is not the solution to everything. This is an example that needs to be addressed through some policy. Tech can only help enforce that policy. In the context of moving physical goods around, ...
amon's user avatar
  • 136k
2 votes

Is there justification for testing only master in an integration environment?

There are different solutions to the described problem, but allowing to test other branches in an integration environment is only one approach. Moreover, as noted in a comment, it is only sensible if ...
Doc Brown's user avatar
  • 220k
2 votes
Accepted

How to configure front-end web application from environment?

4 is good if you have your application begin behind reverse proxy like cloudfront you can configure /api/* to go to your backend. Cloudfront brings other advantages like https and caching. 3 is ...
Esben Skov Pedersen's user avatar
2 votes
Accepted

ASP.NET Core configuration system: Isn't the default configuration prone to naming conflicts in environment variables?

Yes you are correct. I think the thing you are missing is that usually .net apps are server side websites, APIs and services. In these cases, we only want to run one app on any given "machine&...
Ewan's user avatar
  • 84.4k
1 vote

Better management of ~1000 lines of environment configuration properties?

There is probably no silver bullet for this situation, but there are several tactics which can applied here to make the experience more smooth. Reduce the redundancy! Maybe it is not possible to ...
Doc Brown's user avatar
  • 220k
1 vote

Decisions according to environment

A key question here is when dryMode is known. If it's only known after the adapter is constructed the polymorphic solution wont work. The polymorphic solution allows you to add more cases later ...
candied_orange's user avatar
1 vote

How do I handle 2 or more parallel development environments on different machines?

Github - I would have to commit everything, even unfinished or completely broken files which seems like it would be a mess and quickly pollute by repo with unnecessary commits. Git is basically ...
pjc50's user avatar
  • 15.3k
1 vote

How do I handle 2 or more parallel development environments on different machines?

If you are not willing or able to change your way of working so you could utilize a Git server or Github for syncing, I guess the most efficient way to accomplish what you want is to have your working ...
Doc Brown's user avatar
  • 220k
1 vote

What goes into .env file?

That is a question of configuration. Is this aspect of your application requiring information not available at compile time in order to function? If so expose it through several mechanisms: A ...
Kain0_0's user avatar
  • 16.6k
1 vote

What are "orthogonal" environment variables? [12-factor app]

‘Orthogonal’ means independent of each other. That implies that no information is duplicated or repeated in two variables, like a server name, and then a connection string that contains the server ...
Aganju's user avatar
  • 1,473
1 vote

Whats the difference between staging and UAT environments?

UAT is User Acceptance Testing PROCESS , environment for this could be any stable environment, which can be send to the User which will execute testing. Most frequently - stage environment is used for ...
essential light's user avatar

Only top scored, non community-wiki answers of a minimum length are eligible