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
2
votes
1 answer

Do config files I'm referencing need to be in a project's home directory?

I'm trying to store connection string and credentials data in a .config file. I can't push the config with the connection/credentials to a repo; the config will be in a secure, synced folder that isn't the home directory. I can store the…
Steven
  • 3,238
  • 21
  • 50
2
votes
2 answers

Nginx rewrite rules for Angularjs to remove # hash in url in dynamic routes

I have done the following: AngularJS app In app.js: $locationProvider.html5Mode(true); In index.html: nginx config location / { try_files $uri /index.html; } After deployment, things are working fine (# hash…
RoundOutTooSoon
  • 9,821
  • 8
  • 35
  • 52
2
votes
2 answers

Is there a better way to parse this Map?

Fairly new to Go, essentially in the actual code I'm writing I plan to read from a file which will contain environment variables, i.e. API_KEY=XYZ. Means I can keep them out of Version control. The below solution 'works' but I feel like there is…
Mikey
  • 2,606
  • 1
  • 12
  • 20
2
votes
1 answer

Symfony2 & IvoryGoogleMapsBundle - Unrecognized option “api_key” under “ivory_google_map”

I have installed IvoryGoogleMapsBundle as described in documentation using Composer. $ composer require egeloen/google-map-bundle $ composer require php-http/httplug-bundle I registered bundles in AppKernel class: public function…
Ignas Damunskis
  • 1,515
  • 1
  • 17
  • 44
2
votes
3 answers

Do not overwrite config file on Azure using GIT

I have a web application that is hosted on Azure. There are currently a few web sites that are using the same code which is retrieved from bitbucket. The only difference between the various installations is that they have a different connection…
Christoph Adamakis
  • 865
  • 2
  • 9
  • 26
2
votes
0 answers

How to use bower cli config (--config)

Looking at the configuration docs and at the source code of bower it appears that it is now possible to configure bower from the cli via --config.proxy="http://something:1234/". Docs: https://bower.io/docs/config/#placement--order Source:…
atwright147
  • 3,694
  • 4
  • 31
  • 57
2
votes
2 answers

phpMyAdmin - #1932 Table doesn't exist (collation in use) after reinstalling

I'm in the middle of doing my thesis when I found my XAMPP server got some error logs, so I decide to reinstall my XAMPP to a newer version (I got this idea from some threads in SO). I moved my mysql > data folder and restored it again in my new…
Dolorosa
  • 573
  • 3
  • 10
  • 29
2
votes
0 answers

ConfigParser.NoSectionError: No section: 'options'

I tried to read a config file of odoo 8 but getting this error: My config file looks like: [options] #This is the password that allows database operations: admin_passwd = admin db_host = False db_port = False db_user = kabeer db_password =…
KbiR
  • 4,047
  • 6
  • 37
  • 103
2
votes
1 answer

Edit installed XML file according to user preferences in Inno Setup

So I've been struggling with this problem for a few days now. Currently making an installer for our company software but the customer has to be able to fill in a URL that gets saved in the app.exe.config. I've been through a lot of googling and…
krituin
  • 23
  • 3
2
votes
4 answers

Upgrading to macOS Sierra breaks PHP/MYSQL configuration

So I recently upgraded to macOS Sierra (Beta) and it broke my PHP/MySQL config... no real surprise there but... what's weird is that some quick terminal commands show me that PHP and MySQL are both up and running! For example...…
ben.kaminski
  • 986
  • 3
  • 13
  • 24
2
votes
1 answer

Sidekiq: Get config

Is there any way to access the config for Sidekiq, inside a running server. For example, how to determine the concurrency setting? It would be useful for setting other values such as pool sizes.
mahemoff
  • 44,526
  • 36
  • 160
  • 222
2
votes
1 answer

How to use ConfigSlurper to configure a JavaBean

The JavaDoc of ConfigSlurper says Settings can either be bound into nested maps or onto a specified JavaBean instance. How does the latter work? I only find examples of using the result as map or properties.
Vampire
  • 35,631
  • 4
  • 76
  • 102
2
votes
1 answer

How to exclude certain plugins from war in grails 1.3.5

I'm seeking how to exclude plugins for specific environments. According to GRAILS documentation, starting with 1.3.5 it's now possible to disable a bunch of plugins. For example, I add the jetty plugin for local testing, but don't need it for…
BaRoN
  • 449
  • 3
  • 13
2
votes
1 answer

Can hiveconf variables be loaded from a file? (Separate from the HiveQL file)

I often have a large block of HiveQL that I want to run multiple times with different settings for some variables. A simple example would be: set mindate='2015-01-01 00:00:00' set maxdate='2015-04-01 00:00:00' select * from my_table where the_date…
Corey
  • 1,845
  • 1
  • 12
  • 23
2
votes
1 answer

How to write back to cfg file when I load the file and change the MySpan variate?

I want to write the conf out to myconfig.gcfg, when I load the file and has change the Name string. How should I do? Sample config: [Span] Name = "DuraSpan" MySpan = 4 [Sys] SerialName = "/dev/ttyS0" Go code: import…
Wandy
  • 21
  • 3