1 May 2012 10:59
code deployment through php
rene7705 <rene7705 <at> gmail.com>
2012-05-01 08:59:23 GMT
2012-05-01 08:59:23 GMT
Hi folks. I was here a while ago, trying to figure out how to keep deployment instances of my common code, running on more than 1 site, in sync with eachother. I've looked at rsync which was recommended here, but didn't like it much, nor could I find a good windows version of it. So yesterday, I decided to try a pure PHP solution. My thinking was: run a PHP sync script once on each physical machine that holds possibly multiple copies of my common code, and FTP the common code only 1 time because I use only 1 shared hosting account besides my windows development machine. I've gotten it so far that it creates an imo good list of what to copy where. The only problem I can foresee is that the copy command will take more than 30 seconds, which makes it hard to run at the shared hoster. And obviously, it's going to need some good input checking to prevent abuse. I've put up a demo at http://skatescene.biz/sites/mediabeez.ws/sync_secret_cndj593n2/ , you can "execute" the "code" job to see it in action. I'll also post the working copy of my sync library at the bottom of this post. The only thing missing is the actual copy($source,$dest), I think.(Continue reading)
RSS Feed