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.
...
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.
...
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 ...
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 ...
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 “...
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, ...
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 ...
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 ...
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 ...
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 ...
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 ...
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, ...
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 ...
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 ...
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&...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
environment × 42configuration × 13
java × 3
web-applications × 3
deployment × 3
release-management × 3
development-environment × 3
configuration-management × 3
production × 3
python × 2
.net × 2
security × 2
data × 2
continuous-integration × 2
command-line × 2
design × 1
design-patterns × 1
architecture × 1
object-oriented × 1
c++ × 1
database × 1
javascript × 1
php × 1
testing × 1
agile × 1