Contact Us

Bug-fix update for SVN/FTP Deployment Task

Posted on 17/2/07 by Felix Geisendörfer

Deprecated post

The authors of this post have marked it as deprecated. This means the information displayed is most likely outdated, inaccurate, boring or a combination of all three.

Policy: We never delete deprecated posts, but they are not listed in our categories or show up in the search anymore.

Comments: You can continue to leave comments on this post, but please consult Google or our search first if you want to get an answer ; ).

Hey folks,

this is just a quick update for the CakePHP 1.2 SVN/FTP Deployment task I released a while ago. It fixes a problem that would sometimes cause 'Folder could not be created' errors to show up even so the folder was successfully created via ftp.

The new package can be downloaded here: (10,3 KB)

Me and nate are working on some cool new features for CakePHP right now and once that is completed I might be able to use them to rewrite this task into something more stable ; ).

-- Felix Geisendörfer aka the_undefined


You can skip to the end and add a comment.

D.Pape  said on Mar 08, 2007:

Hi Felix.
There is still the problem with creating folders. What's wrong?

Cheers, Daniel

D.Pape  said on Mar 09, 2007:

Ok, i modified ftp_connection.php, function dirExists and set param $useCache to false.
Now it works. :-)

Great stuff. Thank you Felix!!

speedmax  said on Apr 22, 2007:

I see the ftp deployment allows a different connection function to be invokved..
it is using a very similar pattern as the dbo connection using different driver..

How about a SFTP driver? you know i think most of the people are ditching ftp/telnet all along..

var $sftpConfig = array('host' => 'localhost',
'connect' => 'ssh2_connect',

'login' => 'root',

'password' => '',

'port' => '22',

'timeout' => '60',

'base_path' => '/',

'svn_file' => '/app/webroot/revision.txt');

speedmax  said on Apr 22, 2007:

For details here.

Felix Geisendörfer said on Apr 23, 2007:

speedmax: I'll keep in in mind when redoing the SVN / FTP stuff all together into more generic components to build a deploy script upon.

Kim Fransman said on Dec 06, 2007:

Hi Felix.
I wonder how you manage shared directories in your app , for example upload folders that you dont want to mess up, are you using "svn ignore" or are you doing something in deployment stage?

Great piece of code btw, helps speeds things up remarkably!

Felix Geisendörfer said on Dec 07, 2007:

Kim: I'm not using this deployment method anymore since I got myself a root server for my new task management project. However svn ignore seems like a good idea.

daniel said on Apr 23, 2008:

Hi Felix,

as I wrote you some time ago, we used your code to create a visual deployment module. you can check an article (in Spanish) and grab the code here:


This post is too old. We do not allow comments here anymore in order to fight spam. If you have real feedback or questions for the post, please contact us.