Site Auto Deploy - rit-sse/crazy-train GitHub Wiki

About

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.

Step By Step

  1. Check if request is from github
  2. Pull all the submodules
  3. Install all dependencies
  4. Add YAML front matter to governing-docs
  5. Move the images from posts and pages to the assets directory
  6. Build site to a temp
  7. 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.
  8. Checkout all the governing docs

Deploying

  1. SSH into the server (web or webtest)
  2. cd /deploy
  3. git pull
  4. bundle
  5. rake server:stop
  6. rake server:start
⚠️ **GitHub.com Fallback** ⚠️