Silly retro website hosted at home http://home.wezm.net/~wmoore/
Find a file
2025-04-25 19:21:28 +10:00
.cargo WIP dev server 2025-04-16 17:33:01 +10:00
infra nginx: Add redirect for about.html 2025-04-20 19:29:52 +10:00
public Regenerate pineapple thumbnails that were the wrong size 2025-04-25 19:17:20 +10:00
src Calculate age of Qotom dynamically 2025-04-21 14:18:00 +10:00
templates Rename to Wes' Retro Site 2025-04-25 19:19:48 +10:00
.gitattributes Add photos to pineapple page 2025-04-19 20:31:41 +10:00
.gitignore Fix perms on static HTML 2025-04-20 17:55:43 +10:00
Cargo.lock Show live energy stats on the home page 2025-04-19 18:30:25 +10:00
Cargo.toml Show live energy stats on the home page 2025-04-19 18:30:25 +10:00
Makefile Permissions of html files should be 644, not 655 2025-04-20 19:40:33 +10:00
README.md Add note about make to the README 2025-04-25 19:21:28 +10:00

Wes' Nonsense Website

Development

In development the static files are served by the application. In production the expectation is that nginx will do this.

watchexec -w src -w templates -r 'cargo dev'

If changes are made to the static pages, you need to run make.

Deployment

There are two parts:

  1. Running the Rust binary
  2. Building the static files

The Rust binary is installed as a Chimera package and run with dinit. /usr/lib/dinit.d/nonsense.env is created to set env vars for the process.

Since the Rust binary needs the templates anyway, the static files are built on the host, instead of building them remotely and syncing them.

Ensure git-lfs is installed.