News for hackers. Stuff that matters.
Re:Git tips to stop you getting fired by philjackson on Monday April 08, 2013 @05:43PM (#5514832)
An example scenario might play out thusly: Fred checks in the production configuration credentials (lets say mysql configuration for this example) in a file called passwords.php. Senior developer Bob Van Gogh checks out the project but needs to connect to his local mysql instance to develop. He edits the configuration file and hacks away on his feature. Somewhere along the way he accidentally commits passwords.php with his changes. Eventually his code is deployed and suddenly the app servers can't connect to the database. Bob's no good at football but he's a good developer and now thanks to that accident his reputation is tarnished beyond the football pitch too.

Configuration like that should be managed by something that isn't susceptible to these accidental changes.

As you mention it, security is an issue too. The fewer people who know the passwords to anything the better and the more you can keep the passwords from going over the wire the better.

Re:Git tips to stop you getting fired by mostlystatic on Monday April 08, 2013 @05:51PM (#5514880)
Cool, thanks for the explanation. I usually have the development config in the repo and the deployment script overwrites it on the server.
Re:Git tips to stop you getting fired by prodigal_erik on Monday April 08, 2013 @06:08PM (#5514985)
That's better than the converse (default is prod, yikes!) but there's a risk of a prod server using the dev config, which might appear to work unless your dev environment is firewalled off. I prefer having an invalid or unusable config checked in, so the system doesn't even come up until I deploy the config I intend to use over it.
Re:Git tips to stop you getting fired by northernmonkey on Tuesday April 09, 2013 @05:16AM (#5517093)
I know Bob, he's a much better footballer than he is developer
Re:Git tips to stop you getting fired by philjackson on Tuesday April 09, 2013 @06:32AM (#5517221)
It's the cartwheels that set him apart.