Glavin001 / GitLab-Pages

:eyes: GitHub Pages, for GitLab.
MIT License
203 stars 30 forks source link

shows 404 error on Jekyll error #14

Open phillipthelen opened 9 years ago

phillipthelen commented 9 years ago

It would be nice if the old version of the page could still be served and the user who pushed would be notified about the error via email or similar. That way jekyll errors wouldn't result in accidental downtime.

Glavin001 commented 9 years ago

Great idea

Glavin001 commented 9 years ago

3 Directories:

When a project's page is being updated, clone / pull the changes into the clone directory. Then run jekyll and build pages into the temp directory. This is where errors will be caught. Finally, if building the pages is successful, move the entire directory from temp directory to pages directory.

Currently GitLab Pages only have a clone directory and pages directory. With the above, we can safely push changes that may break. Furthermore, we can add support for emailing errors to users given the email of the commit.