How can I apply code changes to my running website, if I have bug fixes or updates? The simplest way I can think of is to set up the same site in a different directory for testing the updates, and then put my website offline for a period of time to update files.
Is there a better way?