<?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: An alternative to &#8220;hacking&#8221; config files</title>
	<atom:link href="http://cakebaker.42dh.com/2006/09/16/an-alternative-to-hacking-config-files/feed/" rel="self" type="application/rss+xml" />
	<link>http://cakebaker.42dh.com/2006/09/16/an-alternative-to-hacking-config-files/</link>
	<description>baking cakes with CakePHP</description>
	<lastBuildDate>Tue, 31 Jan 2012 15:12:14 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: jzimmerman</title>
		<link>http://cakebaker.42dh.com/2006/09/16/an-alternative-to-hacking-config-files/comment-page-1/#comment-759</link>
		<dc:creator>jzimmerman</dc:creator>
		<pubDate>Tue, 19 Sep 2006 05:11:30 +0000</pubDate>
		<guid isPermaLink="false">http://cakebaker.42dh.com/2006/09/16/an-alternative-to-hacking-config-files/#comment-759</guid>
		<description>I develop locally on my laptop, have experimented with local svn version control, but since I am the only one working on my projects I usually just gzip my directories for backups.

I use rsync to deploy code changes to my servers though.  I have 2 different database config files.  database.php.live, database.php.local.

My script that runs rsync just moves files around before syncing.

Here is my script.  I execute it from the  command line....
------------------------------------------------------------
#!/bin/bash
chmod -R 755 *
cp ./app/config/database.php.live ./app/config/database.php
rsync -az -e ssh --delete ./ username@example.com:/path/to/public/directory
cp ./app/config/database.php.local ./app/config/database.php
------------------------------------------------------------

No logic in my project, just moving files around before and after syncing.</description>
		<content:encoded><![CDATA[<p>I develop locally on my laptop, have experimented with local svn version control, but since I am the only one working on my projects I usually just gzip my directories for backups.</p>
<p>I use rsync to deploy code changes to my servers though.  I have 2 different database config files.  database.php.live, database.php.local.</p>
<p>My script that runs rsync just moves files around before syncing.</p>
<p>Here is my script.  I execute it from the  command line&#8230;.<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<br />
#!/bin/bash<br />
chmod -R 755 *<br />
cp ./app/config/database.php.live ./app/config/database.php<br />
rsync -az -e ssh &#8211;delete ./ <a href="mailto:username@example.com">username@example.com</a>:/path/to/public/directory<br />
cp ./app/config/database.php.local ./app/config/database.php<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;</p>
<p>No logic in my project, just moving files around before and after syncing.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: cakebaker</title>
		<link>http://cakebaker.42dh.com/2006/09/16/an-alternative-to-hacking-config-files/comment-page-1/#comment-745</link>
		<dc:creator>cakebaker</dc:creator>
		<pubDate>Mon, 18 Sep 2006 07:41:49 +0000</pubDate>
		<guid isPermaLink="false">http://cakebaker.42dh.com/2006/09/16/an-alternative-to-hacking-config-files/#comment-745</guid>
		<description>@Kjell Bublitz: I use a rather pragmatic approach. I just copy the folders I work with (controllers, models, views) to the &quot;live&quot; folder, synchronize the &quot;live&quot; folder with the repository and commit the changes.</description>
		<content:encoded><![CDATA[<p>@Kjell Bublitz: I use a rather pragmatic approach. I just copy the folders I work with (controllers, models, views) to the &#8220;live&#8221; folder, synchronize the &#8220;live&#8221; folder with the repository and commit the changes.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kjell Bublitz</title>
		<link>http://cakebaker.42dh.com/2006/09/16/an-alternative-to-hacking-config-files/comment-page-1/#comment-744</link>
		<dc:creator>Kjell Bublitz</dc:creator>
		<pubDate>Sun, 17 Sep 2006 01:21:29 +0000</pubDate>
		<guid isPermaLink="false">http://cakebaker.42dh.com/2006/09/16/an-alternative-to-hacking-config-files/#comment-744</guid>
		<description>And how do you manage to keep both of your SVN version in synch without overwriting the live config by accident? Some hints would be great. TIA</description>
		<content:encoded><![CDATA[<p>And how do you manage to keep both of your SVN version in synch without overwriting the live config by accident? Some hints would be great. TIA</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Felix Geisendörfer</title>
		<link>http://cakebaker.42dh.com/2006/09/16/an-alternative-to-hacking-config-files/comment-page-1/#comment-743</link>
		<dc:creator>Felix Geisendörfer</dc:creator>
		<pubDate>Sat, 16 Sep 2006 20:10:55 +0000</pubDate>
		<guid isPermaLink="false">http://cakebaker.42dh.com/2006/09/16/an-alternative-to-hacking-config-files/#comment-743</guid>
		<description>Well I can&#039;t argue that that the SVN solution is pretty good, however, I like having this very straight forward method as well since some of the very small projects / code demonstration things I write are not managed via SVN.</description>
		<content:encoded><![CDATA[<p>Well I can&#8217;t argue that that the SVN solution is pretty good, however, I like having this very straight forward method as well since some of the very small projects / code demonstration things I write are not managed via SVN.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

