|
The ftp speed discussion here might be moot to the original questioner's point. FTPing files and other files that they might be dependent on (eg. templates) will always take time and cause temporary breaks in structure. Probably not a good idea on a prod server. A better way to do this would be FTPing to a sub directory, say /uat, and then rsync-ing to prod... with the added benefit that you can of course test on UAT. Something like:
rsync -Prgopt --safe-links --exclude 'smarty/' --exclude 'config*.inc.php' --exclude 'error_log' /home/abc/public_html/uat/ /home/abc/public_html Now if running this in an automated fashion via a bash script could be done from PhpED after FTP transfers were done, that would be nice. |
||||||||||||
|
Site Admin
|
Still this way may affect your prod server functionality and what it may improve is the server inconsistentcy time.
To avoid the problem completely you'd need flip-flop htdocs folders. Say you have web's document root in /var/www/flip if you want to update any files, you upload them to /var/www/flop then change apache settings and inform the daemon to reload the config. After the document root is changed to /var/www/flop, you have to upload next updates of the files into /var/www/flip and after you finished, change the config and reload it once again. No users will ever be affected with this approach |
||||||||||||
_________________ The PHP IDE team |
Upload as .php~ then Rename .php (high-volume sites) |
|
||
Content © NuSphere Corp., PHP IDE team
Powered by phpBB © phpBB Group, Design by phpBBStyles.com | Styles Database.
Powered by
Powered by phpBB © phpBB Group, Design by phpBBStyles.com | Styles Database.
Powered by