0
votes

I'm using Phing as my build tool for a website i'm developing. I have a server running on localhost to test things on my own system, and i have a test environment on the server it's eventually going to run on. Deploying to that test environment is currently done by tarring all the built files, uploading the tar to the server and extracting it there.

However, since i'm also using quite a bit of images, this takes pretty damn long; 10 seconds for local deploy vs 4 minutes for a remote deploy. Is there any way to either compare files in 2 directories and only tar the ones that are newer in one dir (so i can keep a shadow copy of the build dir to compare file dates) or another best practice?

Something else i've been thinking about trying is uploading the site using git. Any ideas on that?

1
Why don't you do a rsync instead a tarball?? - m4t1t0
@m4t1t0 phing is a build tool not that supports a lot of other things that rsync does not provide. - Shiplu Mokaddim
Rsync is a possibility, though i was under the impression that it needed to be installed both locally and remotely. I'd very much prefer not to install it on the remote machine. - Erik S
Does FileSyncTask work for you? - Shiplu Mokaddim
Hmm, going to try that one. - Erik S

1 Answers