configuration-files

Git: application configuration and different environments

拜拜、爱过 提交于 2019-12-12 08:25:44
问题 We use git for most of the web applications we build in our shop, and though the applications themselves use a variety of technologies (PHP, Rails, etc), we generally have a staging and production server for each site. Typically, these servers have different sets of database credentials as well as different environment-based configuration settings (e.g. caching). Our workflow generally involves maintaining two git branches per project: master, which reflects the production server, and staging

When I've deployed a Windows Forms application, how can I change the default settings?

不打扰是莪最后的温柔 提交于 2019-12-12 06:19:28
问题 I've deployed a Windows Forms application. On my local development PC, there is a settings.settings file which contains all the app's settings. I'm aware as-per this question and others like it, that a User.config file gets created in c:\Users\username\Local Settings\AppData\Local\... However, I need to change a default setting, so that when users start it for the first time, the default settings are different than when we initially deployed the app. So the first time a user runs the app, it

Why is @ConfigurationProperties not overriding defaults in my case?

醉酒当歌 提交于 2019-12-12 06:07:01
问题 I want spring boot to read my config from entries in my application.properties but they are not activated. My application.properties contains these entries: foo.user=nobody foo.pass=notshared I can see that this file is being read (I only have the file twice: once in the src-tree and once copied automatically in bin. The files are equal): 2015-03-23 21:55:18.199 DEBUG 25004 --- [main] o.s.b.c.c.ConfigFileApplicationListener : Loaded config file 'classpath:/application.properties' I have a

Defining various DB & Salesforce access information in Mule Anypoint Studio

假如想象 提交于 2019-12-12 04:08:43
问题 I am running Mule Anypoint studio v6.2.4 under Windows. I have an application which gets data records from a SQL Server DB and populates them into Salesforce Org. The application was developed using examples and works fine in the current scenario of one DB and one SF parameters defined in mule.{mule.env}.properties file. Now I need to access a different DB for input records and populate them to a different Salesforce org. Changing the access parameters in properties file every time is tedious

JavaFX:Editable Configuration Files After Packaging

我的未来我决定 提交于 2019-12-12 02:53:16
问题 I've a JavaFX application that I packaged it using antBuild to build a single installer .exe file, my app have some configuration files that was placed in the root of the project this way i load them from the root of the project in order to they can be place beside the .jar file and could be changable: try { File base = null; try { base = new File(MainApp.class.getProtectionDomain().getCodeSource().getLocation().toURI()) .getParentFile(); } catch (URISyntaxException e) { System.exit(0); } try

Accessing App.exe.config File in Special Folders

久未见 提交于 2019-12-11 19:52:02
问题 All, I am doing the usual thing of writing application settings to the 'application.exe.config' file using Properties.Settings.Default.SomeSetting = someVal; Properties.Settings.Default.Save(); I have been asked to persist settings between installations and there are two routes; switch to using the registry, or save the .config file to a separate Special Folder that is persisted between installations (I have chosen the later due to number of settings). My .config gets written to an odd

Parsing a Very Simply Config File

给你一囗甜甜゛ 提交于 2019-12-11 18:50:03
问题 I am writing a OBDII reading library / application in C++. Data is retrieved from the car's computer by sending a simple string command, then passing the result through a function specific to each parameter. I would like to read a config file of all the commands I want, something like this perhaps: Name, Command, function Engine RPM, 010C, ((256*A)+B)/4 Speed, 010D, A Basically, very simple, all data needs to just be read in as a string. Can anyone recommend a good simple library for this? My

CI and Deployment with TFS and Powershell

瘦欲@ 提交于 2019-12-11 13:02:00
问题 I am working on a CI process with automated deployment. TFS Build is building the solution, and it then uses an InvokeProcess task to kick off a Powershell script. The Powershell script deploys the database changes as a dacpac using sqlpackage, reporting services reports using the web service, fonts to the SSRS server, and the website itself to 1 or more web servers - the whole process uses a deployment configuration file to define drop paths, server ips, installation folders etc. There will

Where should be stored the environment dependent configs in a Zend Framework 2 application?

耗尽温柔 提交于 2019-12-11 11:09:15
问题 A ZF2 application contains/nneds a lot of different config files: /config/application.config.php , /config/autoload/global.php , /config/autoload/local.php , /module/***/config/module.config.php . Now I've written a module, that covers the caching functionality for the application, and need different values for the livetime of its items in my local/dev and the live environment. I also would like to be able to switch the cache type dependent on the environment. Where should such stuff be sored

How do I use the DLL App.Config Hack for Mail Host Settings

梦想的初衷 提交于 2019-12-11 10:08:35
问题 This was from this question but I was told to ask a new one > [Equivalent to 'app.config' for a library (DLL) Basically I am converting a console app to a DLL and I want to use config settings. They are saying to use an XML file (although I cannot get it to work - all strings come back as blank) but despite that I want to know how to replicate things like Mail Settings. So how would I go about replicating thing like mail settings e.g <system.net> <mailSettings> <smtp> <network host="generic