Site Auto Deploy - rit-sse/crazy-train GitHub Wiki
Site auto deploy is our deploy server. It is probably the Jankiest part of our website but it works really well and makes life really easy.
- Check if request is from github
- Pull all the submodules
- Install all dependencies
- Add YAML front matter to governing-docs
- Move the images from posts and pages to the assets directory
- Build site to a temp
- If the site successfully builds, copy it over the deploy directory. If not email the person who pushed broken code telling them that they pushed broken code.
- Checkout all the governing docs
- SSH into the server (web or webtest)
cd /deploy
git pull
bundle
rake server:stop
rake server:start