Questions tagged [config]

Config files configure the initial settings for some computer programs

Configuration files, or config files configure the initial settings for some computer programs. They are used for user applications, server processes and operating system settings. They may be considered a simple database.

6120 questions
1303
votes
19 answers

Where is the global git config data stored?

When using git config --global to set things up, to which file will it write? Example: git config --global core.editor "blah" I can't find it at these places: C:\Program Files\Git\etc\gitconfig C:\myapp\.git\config I have not set an ENV? My Git…
Ian Vaughan
  • 20,211
  • 13
  • 59
  • 79
408
votes
12 answers

Using logging in multiple modules

I have a small python project that has the following structure - Project -- pkg01 -- test01.py -- pkg02 -- test02.py -- logging.conf I plan to use the default logging module to print messages to stdout and a log file. To use the logging…
Quest Monger
  • 8,252
  • 11
  • 37
  • 43
260
votes
1 answer

Can I comment out a line in a .git/config file?

I have a http.proxy line on my repository configuration file that I would like to 'turn on and off' easily without having to remember and type again the whole configuration every time I'm behind or free from this proxied connection. Another…
n370
  • 3,296
  • 3
  • 15
  • 20
257
votes
13 answers

How to create multiple output paths in Webpack config

Does anyone know how to create multiple output paths in a webpack.config.js file? I'm using bootstrap-sass which comes with a few different font files, etc. For webpack to process these i've included file-loader which is working correctly, however…
spb
  • 4,049
  • 6
  • 22
  • 30
174
votes
13 answers

Spring Boot and multiple external configuration files

I have multiple property files that I want to load from classpath. There is one default set under /src/main/resources which is part of myapp.jar. My springcontext expects files to be on the classpath. i.e.
nir
  • 3,743
  • 4
  • 39
  • 63
159
votes
8 answers

Python: How would you save a simple settings/config file?

I don't care if it's JSON, pickle, YAML, or whatever. All other implementations I have seen are not forwards compatible, so if I have a config file, add a new key in the code, then load that config file, it'll just crash. Are there any simple way to…
user1438098
  • 2,239
  • 3
  • 18
  • 14
158
votes
8 answers

Most Pythonic way to provide global configuration variables in config.py?

In my endless quest in over-complicating simple stuff, I am researching the most 'Pythonic' way to provide global configuration variables inside the typical 'config.py' found in Python egg packages. The traditional way (aah, good ol' #define!) is…
Rigel Di Scala
  • 3,150
  • 2
  • 17
  • 23
157
votes
14 answers

Conflict: Multiple assets emit to the same filename

I'm a webpack rookie who wants to learn all about it. I came across a conflict when running my webpack telling me: ERROR in chunk html [entry] app.js Conflict: Multiple assets emit to the same filename app.js What should I do to avoid the…
Andreasrein
  • 1,616
  • 2
  • 11
  • 10
136
votes
32 answers

How do I grab an INI value within a shell script?

I have a parameters.ini file, such as: [parameters.ini] database_user = user database_version = 20110611142248 I want to read in and use the database version specified in the parameters.ini file from within a bash shell script so I can…
Stephen Watkins
  • 25,047
  • 15
  • 66
  • 100
125
votes
19 answers

How to set dynamic values with Kubernetes yaml file

For example, a deployment yaml file: apiVersion: extensions/v1beta1 kind: Deployment metadata: name: guestbook spec: replicas: 2 template: metadata: labels: app: guestbook spec: container: - name:…
online
  • 4,919
  • 10
  • 32
  • 47
121
votes
6 answers

How to make git diff --ignore-space-change the default

I could probably setup an alias, but it seems like I should be able to set this as an option in the config file, only I don't see anyway to do it. I only want the --ignore-space-change when I'm doing diff, not when I'm doing apply or anything else. …
boatcoder
  • 17,525
  • 18
  • 114
  • 178
108
votes
14 answers

Get environment value in controller

In my .env file I have the following: IMAP_HOSTNAME_TEST=imap.gmail.com IMAP_USERNAME_TEST=myemail@gmail.com IMAP_PASSWORD_TEST=mypw Now I would like to use them in my controller. I've tried this, but without any result: $hostname =…
nielsv
  • 6,540
  • 35
  • 111
  • 215
105
votes
1 answer

GitHub SSH Config: "Bad configuration option: IdentifyFile"

I'm trying to create a .ssh/config file for multiple SSH accounts (specifically for github.com). I've tried several tutorials and github help walk-throughs but nothing seems to work. I created a id_rsa_test and id_rsa_test.pub. I uploaded…
Rico
  • 5,692
  • 8
  • 46
  • 63
103
votes
19 answers

At what point does a config file become a programming language?

I have been mulling over config files and their relationship to code for a while now and depending on the day and direction of the wind my opinions seem to change. More and more though I keep coming back to the realization I first had while…
Chas. Owens
  • 64,182
  • 22
  • 135
  • 226
101
votes
2 answers

Rails Console: reload! not reflecting changes in model files? What could be possible reason?

Earlier it was working fine. I have been playing little bit config. So may be i have changed some config unknowingly. here is config of environment/development.rb config.cache_classes = false # Log error messages when you accidentally call…
Maddy.Shik
  • 6,609
  • 18
  • 69
  • 98
1
2 3
99 100