Add linkcheck script
This commit is contained in:
parent
1cfe805689
commit
477a5d0ef5
2 changed files with 10 additions and 2 deletions
|
@ -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
7
bin/linkcheck
Executable 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/"
|
Loading…
Reference in a new issue