Categories
| Deploying commercial websites without upsetting customers |
|
|
|
|
When deploying updates to a large website (Joomla or Magento sites get pretty big), active clients can be a real pain. Their sessions will break and, at worst, orders or other important data can be lost as files are changed during the deployment. To avoid these problems, the site is usually taken down for maintenance during the deployment but there is a better way. A large deployment such as a major version update can take quite a while. It can be accelerated by copying the files elsewhere on the server and then locally copying them but it still involves a significant delay and there remains a risk of error that can result in the site being down for longer than intended. Larger businesses use staging sites to debug the updates as far as possible but these don't help with the deployment per se. Its still typically necessary to take the site down for a significant amount of time while the updates are deployed and the site is checked... or is it? The example commands below assume you are using a Debian or Ubuntu server. If you are using a customised server or another flavour of Linux, you will need to adapt the paths and file names appropriately. Lets just deal with file changes for now. Updates involving database changes will have to stick with the traditional methods for the moment. For an instant deployment of a significant website revision:
This way you don't have to close the site at all. After an appropriate delay (depending upon your session timeouts and visitor staying time - 24 hours should be more than enough) you can delete the copy and everything is as it was except that the site is updated without any interruption to service.
Set as favorite
Bookmark
Email This
Hits: 1739 Trackback(0)
Comments (0)
![]() Write comment
|
| Last Updated on Wednesday, 09 February 2011 16:42 |





