···33not to be confused with: "web3", actually more like website3¾
4455this should reproduce the nix store path on the website:
66-`nix build git+https://tangled.org/eeep.ee/website3 --no-link --print-out-paths`
66+`nix build git+https://tangled.org/eeep.ee/website3#website.out --no-link --print-out-paths`
7788[this](https://tangled.org/eeep.ee/nixos/blob/main/machines/fovps/services/caddy/website.nix)
99is the other part of the code that makes this run and it is a beautifully cursed
1010rube goldberg machine that exists just so i can update the website independently
11111212-run the following to serve everything locally:
1313-`nix run nixpkgs#caddy -- file-server -l 0.0.0.0:8000 -a -r "$(nix build .#website.out --no-link --print-out-paths)/var/www"`
1212+to serve everything locally like in prod you'll have to use this slightly cursed oneliner, i'm afraid:
1313+```sh
1414+caddy run -a caddyfile -c <(echo 'http://:8000'; cat "$(nix build .#caddyfile --no-link --print-out-paths)"/etc/caddy/Caddyfile)
1515+```
14161517or for development:
1618`nix run .#autorebuild -- src/blog`
1717-and `caddy file-server -l 0.0.0.0:8000 -r -a src/`
1919+and `caddy run --watch`