Skip to content

Latest commit

 

History

History
37 lines (26 loc) · 1.05 KB

README.md

File metadata and controls

37 lines (26 loc) · 1.05 KB

jnsgr.uk

This repository contains the code for my personal website https://jnsgr.uk.

The site is a simple business-card style site built with Hugo, and served with gosherve, which is a tiny little Go webserver that I wrote for serving this page, as well as some static URL redirects from a Github gist.

The site is hosted on a free instance at Fly.io, and deployed automatically with Github Actions.

Building

This project is packaged with Nix, both as a standard Nix package and an OCI container:

# Build the Nix package for the site
nix build .#jnsgruk

# Build the OCI image
nix build .#jnsgruk-container

# Load the container into Docker, and run
docker load < result
# The image tag will the commit short hash
docker run --rm -p 8080:8080 -p 8081:8081 "jnsgruk/jnsgr.uk:$(git rev-parse --short HEAD)"

To build and serve just the Hugo site during development:

# Optional: enter a shell with all the dependencies present.
nix develop

cd site
hugo serve