News Feed
Jobs Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

PHP and Me Blog:
Use Phing to Update your SVN-Version-Controlled Website Automatically, Through FTP
June 20, 2011 @ 11:57:15

On the "PHP and Me" blog there's a new entry from Pinpin Bysma showing how to use the PHP-based deployment tool Phing to update your production website via an FTP connection, automated by a Phing build.

If you're working on a PHP project, like with any other project, probably comes a time when you need to "build a new release," e.g. update the production web site with the latest version of the code. And doing the whole thing manually isn't the most efficient way to get things done, especially if you're lazy, or have to do that every once in a while, over a long period of time. [...] Obviously if updating the site itself could be done without FTP but through a simple svn switch, things would be easier. Still, Phing would allow to make things easier just as nicely. It could for example still be used to create the new tag, trigger the switch, etc

He introduces the process by showing a basic Phing build file that uses the PEAR VersionControl_SVN component to get the latest from the repository and push it to another directory. There was one thing that he wanted to do that the default SVN task couldn't - export the difference between two tags. To make this happen, he had to extend Phing and make a new task - SvnExportDiff. He includes the code for this new task and an updated build file to show it all in use - complete with the FtpDeploy to push the code live.

0 comments voice your opinion now!
phing tutorial svn website deploy ftp custom task


blog comments powered by Disqus

Similar Posts

Zend Developer Zone: Creating Code Coverage Statistics with xdebug

Symfony-Zone: HelloWorld example with Flex and Symfony

Michael Nitschinger's Blog: Using Couchbase as a flexible session store

Gonzalo Ayuso: Sending automated emails with PHP, Swiftmailer and Twig

DevShed: Paginating Blog Entries with Code Igniter


Community Events











Don't see your event here?
Let us know!


support language hack install application introduction opinion facebook code package framework security component unittest release composer podcast hhvm symfony2 overview

All content copyright, 2014 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework