Skip to content

Instantly share code, notes, and snippets.

@j-mcnally
Created July 16, 2015 03:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save j-mcnally/805f8f0fa72ccfed21e9 to your computer and use it in GitHub Desktop.
Save j-mcnally/805f8f0fa72ccfed21e9 to your computer and use it in GitHub Desktop.
Hugo + CaddyServer + Heroku

Running Hugo in Theory

  • Use heroku caddybuild pack with git pull

  • Tell Caddy to pull from github repo

  • Post pull command, run hugo on files from git repo

  • Add / Edit articles using github ace editor or git push

  • Caddy pulls repo files and rebuilds hugo site.

TODO

  • Build a compatible buildpack with git-pull
  • Create a boilerplate Caddyfile to make it easy to setup.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment