mythmon/wok — Issue #68: Output directory gets clobbered if generation error occurs
Author: robatron
Created: 2012-02-22 18:12:23+00:00
State: open

This has happened to me a few times:

1. Make a change
2. Regenerate site
3. An error occurs, e.g., I misspell a template name, or make some other small mistake
4. My site's down until I can fix the problem and regenerate

What do you think of generating the site in a temporary directory, and then copying it over the output directory only if everything's successful?

This would be particularly useful for automated site generation so a site doesn't get taken down b/c someone made a small mistake before uploading their changes.