Retro website hosted at home http://home.wezm.net/~wmoore/
Find a file
2025-09-06 12:59:40 +10:00
.cargo WIP dev server 2025-04-16 17:33:01 +10:00
infra Add RSS feed for news 2025-05-31 12:29:13 +10:00
public Link to http version in most recent news item 2025-09-06 12:59:40 +10:00
src Add RSS feed for news 2025-05-31 12:29:13 +10:00
templates Add some new entries to the Friends of the Old Web section 2025-09-06 12:57:24 +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 Add RSS feed for news 2025-05-31 12:29:13 +10:00
Cargo.toml Add RSS feed for news 2025-05-31 12:29:13 +10:00
Makefile Include make in deploy Makefile target 2025-06-23 15:42:42 +10:00
README.md Add artifacts page 2025-06-23 15:19:36 +10:00
Zed.xcf Move badges to subdir; add Zed, classic-compatible, Linux badges 2025-05-31 12:27:23 +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.

flash-watcher -w src -w templates -rn 'cargo dev'

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

Images

Resize:

magic public/images/ulead-photoimpact5.jpg -set filename:name '%t' -resize x240 -quality 80 'public/images/%[filename:name]-thumb.jpg'

Bake rotation in:

mogrify -auto-orient image.jpg

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.