Silly retro website hosted at home
http://home.wezm.net/~wmoore/
.cargo | ||
infra | ||
public | ||
src | ||
templates | ||
.gitattributes | ||
.gitignore | ||
Cargo.lock | ||
Cargo.toml | ||
Makefile | ||
README.md |
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:
- Running the Rust binary
- 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.