Changeset - 250db691e485
[Not reviewed]
0 1 0
Ben Sturmfels (bsturmfels) - 1 month ago 2024-03-13 04:55:00
ben@sturm.com.au
Document the new deployment approach

Also mentioned linkchecker.
1 file changed with 9 insertions and 7 deletions:
0 comments (0 inline, 0 general)
README.md
Show inline comments
...
 
@@ -58,12 +58,14 @@ for details.
 

	
 
## Deploying
 

	
 
Changes pushed to the https://k.sfconservancy.org/website repository are
 
automatically deployed to the production website by the `conservancy-www-update`
 
SystemD timer. See `systemd/conservancy-www-update.timer` for details.
 
To deploy, run `bin/deploy`. This requires SSH access to `hickory.sfconservancy.org`.
 

	
 
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
 
    sudo -u www-data /var/www/venv-website/bin/python3 manage.py collectstatic --link
 
## Link checking
 

	
 
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.
0 comments (0 inline, 0 general)