Document the new deployment approach

Also mentioned linkchecker.
This commit is contained in:
Ben Sturmfels 2024-03-13 15:55:00 +11:00
parent 3069a72763
commit 250db691e4
Signed by: bsturmfels
GPG key ID: 023C05E2C9C068F0

View file

@ -58,12 +58,14 @@ for details.
## Deploying ## Deploying
Changes pushed to the https://k.sfconservancy.org/website repository are To deploy, run `bin/deploy`. This requires SSH access to `hickory.sfconservancy.org`.
automatically deployed to the production website by the `conservancy-www-update`
SystemD timer. See `systemd/conservancy-www-update.timer` for details.
The `migrate` and `collectstatic` commands are not run automatically. You may
need to run these if modifying the database schema or adding/moving static files:
sudo -u www-data /var/www/venv-website/bin/python3 manage.py migrate ## Link checking
sudo -u www-data /var/www/venv-website/bin/python3 manage.py collectstatic --link
To check for broken links, log on to `hickory.sfconservancy.org` and run
`linkchecker https://sfconservancy.org/`.
Note that the Apache configuration has a significant number of aliases and
redirects for historic URL changes which means that linkchecker may not run
cleanly in local development.