Add linkcheck script

This commit is contained in:
Ben Sturmfels 2024-03-20 15:54:18 +11:00
parent 1cfe805689
commit 477a5d0ef5
Signed by: bsturmfels
GPG key ID: 023C05E2C9C068F0
2 changed files with 10 additions and 2 deletions

View file

@ -59,8 +59,9 @@ To deploy, run `bin/deploy`. This requires SSH access to `hickory.sfconservancy.
## Link checking
To check for broken links, log on to `hickory.sfconservancy.org` and run
`linkchecker https://sfconservancy.org/`.
To check for broken links in production, run:
bin/linkcheck
Note that the Apache configuration has a significant number of aliases and
redirects for historic URL changes which means that linkchecker may not run

7
bin/linkcheck Executable file
View file

@ -0,0 +1,7 @@
#!/usr/bin/env sh
set -e # Abort on failure
set -x
# Run the check from the web-server itself to avoid network delays.
ssh debian@hickory.sfconservancy.org "linkchecker https://sfconservancy.org/"