How to store configs with the passwords in the repository


Warning: count(): Parameter must be an array or an object that implements Countable in /home/styllloz/public_html/qa-theme/donut-theme/qa-donut-layer.php on line 274
0 like 0 dislike
3 views
Just starting to use svn and maybe silly question. Here I have a php project is stored in SVN repository. It has build.xml for phing which deploys the application in two versions on test and main servers. All the parameters for accessing the database is written in build.xml. Actually it is OK to store in the repository of the passwords for access to databases and other external resources or is it done differently?
by | 3 views

2 Answers

0 like 0 dislike
There are several approaches, for example:
1. To keep the build file.xml.example (turnips)
In this case, each developer has to copy it with the name build.xml by changing the settings as desired, and he himself build.xml added to .svnignore, not to grind the values of the individual developers and has always been an example config.
\r
2. Sometimes, doing so build.xml (turnips) stores common to all settings, and to override or add each developer need to create your build.xml.local, which is listed in the blacklist repository. Of course, when you connect configs that must be taken into account, and you want validation to occur on the local configuration.
\r
3. The approach I find most successful, used in many framwork, not only php, for example in the Zend, Symphony and rails, Django, — when one config has multiple partitions, with the possibility to inherit settings from other sections, each individual section can be presledovanie and extended/updated Sections are connected depending on environment variable.
\r
And Yes, answering the question, store the access settings in the repository is fine, unless of course it is not the public rap for the overall fit of the 1st and partly the 2nd methods.
by
0 like 0 dislike
mm, I have a markup on this page went?
by

Related questions

0 like 0 dislike
1 answer
0 like 0 dislike
5 answers
asked Mar 25, 2019 by vedmaka
0 like 0 dislike
4 answers
0 like 0 dislike
2 answers
110,608 questions
257,186 answers
0 comments
27,923 users