-
make build
- Render the blog to static HTML inoutput
. -
make propel
- Start a prepl server with Propel and write the port to.prepl-port
. -
make depot
- Check for outdated dependencies with Depot. -
make test
- Execute all of the tests. -
make serve
- Host theoutput
directory with Python’shttp.server
module. -
make watch
- Rebuild when any source files change, requires entr to be installed andmake propel
already running. -
make build-container
- Build the docker container and tag it asblog
. -
make run-container
- Run the container locally, hosts on port9898
. -
make setup-deploy
- Configures git to deploy to my host. -
make deploy
- Deploys the current master to my host.
This blog runs on DigitalOcean (referral link!) via Dokku.
The container ends up being just the static rendered HTML served by nginx hosted in Dokku. The server
directory contains the nginx configuration template, the $PORT
that Dokku selects is added in at startup.
Feel free to fork this project and adapt it for your own needs! You’ll need to replace my domain in a few places (oli.me.uk
) as well as my name. I’d prefer you to delete my posts and write your own too…
You’ll probably want to edit the nginx configuration to remove the redirects I added for my own legacy blog reasons as well.
Just have a look around the source and grep for some things you spot that are related to myself, feel free to do whatever you’d like with the code.
If you get a lot out of forking this project I’d love to hear about it.
The posts are mine and you should not republish them without asking permission or attribution, the code is fair game.
Find the full unlicense in the UNLICENSE
file, but here’s a snippet.
This is free and unencumbered software released into the public domain.
Anyone is free to copy, modify, publish, use, compile, sell, or distribute this software, either in source code form or as a compiled binary, for any purpose, commercial or non-commercial, and by any means.