<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Easy CakePHP deployment: Environment &amp; Database Config</title>
	<atom:link href="http://cakealot.com/2008/12/environment-and-database-config-easy-cakephp-deployment/feed/" rel="self" type="application/rss+xml" />
	<link>http://cakealot.com/2008/12/environment-and-database-config-easy-cakephp-deployment/</link>
	<description>cakephp and stuff</description>
	<lastBuildDate>Tue, 16 Mar 2010 20:14:10 -0700</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.5</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Pablo</title>
		<link>http://cakealot.com/2008/12/environment-and-database-config-easy-cakephp-deployment/comment-page-1/#comment-196</link>
		<dc:creator>Pablo</dc:creator>
		<pubDate>Sat, 19 Sep 2009 14:14:41 +0000</pubDate>
		<guid isPermaLink="false">http://cakealot.com/?p=43#comment-196</guid>
		<description>Thanks, very helpful!</description>
		<content:encoded><![CDATA[<p>Thanks, very helpful!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kjell</title>
		<link>http://cakealot.com/2008/12/environment-and-database-config-easy-cakephp-deployment/comment-page-1/#comment-194</link>
		<dc:creator>Kjell</dc:creator>
		<pubDate>Tue, 15 Sep 2009 13:36:44 +0000</pubDate>
		<guid isPermaLink="false">http://cakealot.com/?p=43#comment-194</guid>
		<description>If you have setup the different stages you can store the live, test and dev database settings within the source (SCM-Server). The app itself then can run on three (or more) different locations without the need to config after deployment. 

As for local devlopment: I just agree on the first default-config with everyone so we can leave the file alone. 

Without this, you would have to manually edit the database.php (or database.php.sample) on each server after you deployed the app (which can be annoying if you ever change the password or add methods, properties, datasources, etc..). The above simply allows you to keep the database.php in your SCM and push updates without all the hassle. 

Now to your question specificly:
No, there would still be conflicts after a developer clones the app AND changes the file (it&#039;s in the SCM after all, whatever it is). The changes would affect everyone. 

Best is to tell everybody how to name and password-protect their local database. That shouldn&#039;t be an issue and in most prefab XAMP stacks it&#039;s &quot;root:root&quot; anyway. 

The trick explained here is aimed at server deployment. Local dev still requires a &quot;agreement&quot; between the people involved.</description>
		<content:encoded><![CDATA[<p>If you have setup the different stages you can store the live, test and dev database settings within the source (SCM-Server). The app itself then can run on three (or more) different locations without the need to config after deployment. </p>
<p>As for local devlopment: I just agree on the first default-config with everyone so we can leave the file alone. </p>
<p>Without this, you would have to manually edit the database.php (or database.php.sample) on each server after you deployed the app (which can be annoying if you ever change the password or add methods, properties, datasources, etc..). The above simply allows you to keep the database.php in your SCM and push updates without all the hassle. </p>
<p>Now to your question specificly:<br />
No, there would still be conflicts after a developer clones the app AND changes the file (it&#8217;s in the SCM after all, whatever it is). The changes would affect everyone. </p>
<p>Best is to tell everybody how to name and password-protect their local database. That shouldn&#8217;t be an issue and in most prefab XAMP stacks it&#8217;s &#8220;root:root&#8221; anyway. </p>
<p>The trick explained here is aimed at server deployment. Local dev still requires a &#8220;agreement&#8221; between the people involved.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Pablo</title>
		<link>http://cakealot.com/2008/12/environment-and-database-config-easy-cakephp-deployment/comment-page-1/#comment-193</link>
		<dc:creator>Pablo</dc:creator>
		<pubDate>Tue, 15 Sep 2009 12:01:27 +0000</pubDate>
		<guid isPermaLink="false">http://cakealot.com/?p=43#comment-193</guid>
		<description>Hey thanks for the information!

I’ve read the post from rafaelbandeira3, Chris Hartjes, and Neil Crookes  and find it very interesting...

However, I’m very new to the different environments concept... Can you explain me like what would be the workflow in order to implement this? I mean, this is what I have in mind:

1 - A developer checks-out/clone the app.
2 - He/she will configure the “config” files to meet their environment (“dev”).
3 - He/she will only “check-in/push” features specific commits.
4 - Finally the SCM will not make updates to their environments configuration files... 

Right? I’m sure I’m missing steps… I would appreciate if you can help me on this!

Thanks in advance!</description>
		<content:encoded><![CDATA[<p>Hey thanks for the information!</p>
<p>I’ve read the post from rafaelbandeira3, Chris Hartjes, and Neil Crookes  and find it very interesting&#8230;</p>
<p>However, I’m very new to the different environments concept&#8230; Can you explain me like what would be the workflow in order to implement this? I mean, this is what I have in mind:</p>
<p>1 &#8211; A developer checks-out/clone the app.<br />
2 &#8211; He/she will configure the “config” files to meet their environment (“dev”).<br />
3 &#8211; He/she will only “check-in/push” features specific commits.<br />
4 &#8211; Finally the SCM will not make updates to their environments configuration files&#8230; </p>
<p>Right? I’m sure I’m missing steps… I would appreciate if you can help me on this!</p>
<p>Thanks in advance!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kjell</title>
		<link>http://cakealot.com/2008/12/environment-and-database-config-easy-cakephp-deployment/comment-page-1/#comment-6</link>
		<dc:creator>Kjell</dc:creator>
		<pubDate>Mon, 29 Dec 2008 00:24:50 +0000</pubDate>
		<guid isPermaLink="false">http://cakealot.com/?p=43#comment-6</guid>
		<description>Hi Rafael - i tried to ping, but i couldn&#039;t find the trackback url on your page. I&#039;ve added your posts url as trackback, but i guess Wordpress didnt know how to communicate.</description>
		<content:encoded><![CDATA[<p>Hi Rafael &#8211; i tried to ping, but i couldn&#8217;t find the trackback url on your page. I&#8217;ve added your posts url as trackback, but i guess Wordpress didnt know how to communicate.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rafael Bandeira</title>
		<link>http://cakealot.com/2008/12/environment-and-database-config-easy-cakephp-deployment/comment-page-1/#comment-5</link>
		<dc:creator>Rafael Bandeira</dc:creator>
		<pubDate>Mon, 29 Dec 2008 00:19:41 +0000</pubDate>
		<guid isPermaLink="false">http://cakealot.com/?p=43#comment-5</guid>
		<description>Hey, nice to see it getting on someone else&#039;s setup.
Anyway, good approach, wise merge of both ideas!
Why didn&#039;t you post me a pingback?</description>
		<content:encoded><![CDATA[<p>Hey, nice to see it getting on someone else&#8217;s setup.<br />
Anyway, good approach, wise merge of both ideas!<br />
Why didn&#8217;t you post me a pingback?</p>
]]></content:encoded>
	</item>
</channel>
</rss>
