RE: [PHP] In need of CVS/SVN checkout script for Production servers [solved]
| From: | Daevid Vincent | Date: | Tue, 04 May 2010 20:10:41 +0000 |
| Subject: | RE: [PHP] In need of CVS/SVN checkout script for Production servers [solved] | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-304894@lists.php.net to get a copy of this message | ||
> -----Original Message-----
> From: Daevid Vincent [mailto:daevid@daevid.com]
> Sent: Thursday, April 29, 2010 12:33 PM
> To: php-general@lists.php.net
> Subject: [PHP] In need of CVS/SVN checkout script for
> Production servers
>
> Semi-off-topic, but I'm pretty sure you all are faced with this same
> challenge, I figured it's worth a shot and maybe some flaming.
>
> I'm looking for a script (bash or php) that I would run on my
> production
> web server that would do this or close to it:
>
> 1. do a CVS/SVN checkout to a new timestamped directory
> 2. change the symlink from the old directory
> 3. change permissions to www-data:www-data on new directory
> 4. and possibly tarball up the old directory.
>
> I'm assuming this is a fairly common task, and I actually wrote one of
> these at my previous job, but I can't find the script
> anymore. I remember
> it's not quite as trivial as it sounds and took a few hours
> to perfect, so
> I thought I'd try to save myself some time. :)
>
> I have some other useful SVN scripts here if anyone is interested:
> http://daevid.com/content/examples/snippets.php
Well, here is the one I'm using. I ended up just writing one (again!)
http://www.daevid.com/content/examples/snippets.php
:: "Production
Deployment Script"