News 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

Michelangelo van Dam's Blog: Quality Assurance on PHP projects - PHPUnit part 2

Tutorialzine.com: Building a Website with PHP, MySQL and jQuery Mobile, Part 1

KillerPHP Blog: PHP Video: Processing Forms with PHP - part 2

Srdjan Vranac's Blog: Custom Repository with DIC in Symfony2

DevShed: Introducing the Facade Pattern in PHP 5


Community Events





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


laravel introduction interview series code language developer refactor opinion install release api framework podcast list community threedevsandamaybe symfony2 testing unittest

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