Keeping a server live while pushing changes to production

view full story

http://serverfault.com – I am using EC2 as the live production server, and I am using git for source control. Currently, when I push changes to the site, I have a bash script that runs & pulls the most recent changes from git, and restarts the server. This causes the site to be down for about ten seconds while this is happening. I would like to be able to push changes and keep the site live. (My initial thought would be to fire up an additional EC2 instance with the existing code while these changes are being pushed to the server that is being updated.) What are some ways to accomplish keeping the site live while (HowTos)