CodeIgniter Forums
Version Control - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23)
+--- Thread: Version Control (/showthread.php?tid=37357)

Pages: 1 2


Version Control - El Forum - 01-14-2011

[eluser]n0xie[/eluser]
[quote author="Eric Barnes" date="1294997252"][quote author="atw" date="1294983772"]@Eric Barnes: How do you, personally, stop your passwords going under VC? Do you tell the VC app to ignore .../config/database.php (via .hgignore et al)?[/quote]

Depends on the site. But here is how I normally do it.

I create a database.orig.php and then add database.php to the ignore list. This way when you create database.php it will never be committed.[/quote]
We use the same method. We rename config.php to config.default.php and database.php to database.default.php and then add conig.php and database.php to .gitignore.