Questions tagged [configuration-files]

Files that configure the initial settings for some computer programs.

2246 questions
12
votes
1 answer

Is possible to split PHP configuration file php.ini?

Anyone working with php knows that php.ini is a big file that may cause headaches when you need to change over ssh. For example I can change nginx.conf using include directive to load all of the files under sites-enabled dir into the main…
adrian7
  • 986
  • 12
  • 35
11
votes
2 answers

How to get Grails application name within Config.groovy?

I want to include the Grails application name in some of my configuration settings in grails-app/Config.groovy. I've tried many ways without success. For example, if I have the following in my Config.groovy, edu.appname1 =…
Big Ed
  • 1,056
  • 9
  • 20
11
votes
6 answers

Use properties file instead of static final variables

I have many classes with static final fields which are used as default values or config. What is best approach to create global config file? Should I move these fields to single static class, use properties file or what? Edit: I need to use this…
karolkpl
  • 2,189
  • 10
  • 39
  • 60
11
votes
3 answers

Initializing user.config or app.exe.config during install

I am developing a .NET WinForms application which relies on user.config to store various useful settings such as intranet web service URLs. We would like to make it possible to import custom initial settings as part of the installation. The use…
Chris Ammerman
  • 14,978
  • 8
  • 41
  • 41
11
votes
1 answer

Can I move configuration from appsettings.json to database in an ASP.NET Core MVC application?

I have this application that uses the appsettings.json to store some configurations like API addresses, tokens, paths to save files, etc. We don't have DevOps, so for each change we do in the appsettings, we need to ask infrastructure team to deploy…
11
votes
5 answers

Managing configurations for different environments

I've had a discussion with some people at work and we couldn't come to a conclusion. We've faced a dilemma - how do you manage different configuration values for different environments? We've come up with some options, but none of them seemed to…
11
votes
3 answers

How to load multiple config files in .Net Core

I want to load multiple config files from a folder in a loop in .Net core middle ware. I know we can load one or multiple config files by naming them like appSettings.json as mentioned here But in my case, if I have multiple config folders, and each…
Syed
  • 308
  • 1
  • 4
  • 12
11
votes
3 answers

What is the benefit of using the ConfigParser instead of a regular python.py file when writing configuration files?

I have been using the ConfigParser module to write configuration files for some time. However, a thought recently struck me; why not just use pure Python instead? Take this example configuration file: [parameters] # Host host =…
mshell_lauren
  • 5,171
  • 4
  • 28
  • 36
11
votes
1 answer

Is there a programmatic way to find out how a Spring bean was created?

Is there a programmatic way to find out which Configuration class or xml file created a Spring bean? Instead of digging through the code to figure it out.
Glide
  • 20,235
  • 26
  • 86
  • 135
11
votes
3 answers

Cross-platform addressing of the config file

Simple case I have a Python program that I intend to support on both *nix and Windows systems. The program must be configurable, at least globally. Is there a cross-platform way to address the configuration file? I.e. I want to write instead…
dpq
  • 9,028
  • 10
  • 49
  • 69
11
votes
8 answers

Is there some common way to write and read config files?

I need my program to create and edit a config file, which would contain information about set of objects, and than read it at every execution. Is there some sort of guideline for config style that i can use? I'm using C++ on windows.
Blin
  • 698
  • 9
  • 18
11
votes
2 answers

TYPO3 ver. 6.x - additional configuration a.k.a. `localconf_local.php`

What we need In TYPO3 ver. 4.x we used to include additional configuration file for overwriting some settings (ie. DB credentials) by adding the include statement at the end of the localconf.php: @include_once('localconf_local.php'); Thanks to this…
biesior
  • 55,576
  • 10
  • 125
  • 182
11
votes
2 answers

How to set different username by repository in Mercurial?

I am working on projects for different clients using Mercurial as a VCS. I know how to set a default user, but is there a mean to set a different user for each project ?
edomaur
  • 1,397
  • 4
  • 23
  • 38
11
votes
6 answers

Problems with new build server

After moving my build server I get the following error: C:\Windows\Microsoft.NET\Framework64\v3.5\Microsoft.Common.targets (1682): Could not run the "GenerateResource" task because MSBuild could not create or connect to a task host with runtime…
dexter
  • 7,063
  • 9
  • 54
  • 71
11
votes
2 answers

Can I submit an oozie job with multiple configuration files?

From the Oozie CLI I want to do something like this: oozie job -oozie http://host:port/oozie -config jobConfig.properties, baseConfig.properties -submit I have a lot of different jobs I'm running where a portion of the .properties file is…
Tim Goodman
  • 23,308
  • 7
  • 64
  • 83