diff --git a/README.md b/README.md index adbbeb0..df49505 100644 --- a/README.md +++ b/README.md @@ -3,15 +3,17 @@ not to be confused with: "web3", actually more like website3¾ this should reproduce the nix store path on the website: -`nix build git+https://tangled.org/eeep.ee/website3 --no-link --print-out-paths` +`nix build git+https://tangled.org/eeep.ee/website3#website.out --no-link --print-out-paths` [this](https://tangled.org/eeep.ee/nixos/blob/main/machines/fovps/services/caddy/website.nix) is the other part of the code that makes this run and it is a beautifully cursed rube goldberg machine that exists just so i can update the website independently -run the following to serve everything locally: -`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"` +to serve everything locally like in prod you'll have to use this slightly cursed oneliner, i'm afraid: +```sh +caddy run -a caddyfile -c <(echo 'http://:8000'; cat "$(nix build .#caddyfile --no-link --print-out-paths)"/etc/caddy/Caddyfile) +``` or for development: `nix run .#autorebuild -- src/blog` -and `caddy file-server -l 0.0.0.0:8000 -r -a src/` +and `caddy run --watch`