Changeset - aef9d18eb4c0
[Not reviewed]
0 2 0
Ben Sturmfels (bsturmfels) - 6 months ago 2023-11-25 02:41:55
ben@sturm.com.au
Add docs to enable conservancy-www-db.path
2 files changed with 1 insertions and 1 deletions:
0 comments (0 inline, 0 general)
TODO.md
Show inline comments
 
# To-do
 

	
 
* consider running the /etc/systemd/system/conservancy-www-db.service on a timer so it doesn't require an Apache restart (and brief outage)
 
* use `<detail>` elements for supporter page hidden sections, rather than complex jQuery - or consider Alpine.js
 
* replace `internalNavigate` with inline flexbox layout
 
* migrate to Django 4.2
 
* add deployment script that runs migrations and collects static files
 
* add tests for main pages returning 200
 
* switch to `path` in URLconfs
 
* review `apache2` directory - may be unused
 
* standardise settings to replace `settings.py` and `djangocommonsettings.py`
 
  with `settings/prod.py` and move `SECRET_KEY` to an environment variable
 

	
 

	
 
# Done
systemd/README.md
Show inline comments
 
# Systemd services
 

	
 
## Installing
 

	
 
Install all Systemd services with:
 

	
 
    cp systemd/conservancy-www-*.{service,timer} /etc/systemd/system
 
    systemctl enable conservancy-www-cleanup.service
 
    systemctl start conservancy-www-cleanup.service
 
    systemctl enable conservancy-www-update.timer
 
    systemctl start conservancy-www-update.timer
 
    systemctl enable conservancy-www-db.service
 
    systemctl enable conservancy-www-db.path
 
    systemctl start conservancy-www-db.path
 

	
 

	
 
##  Website updates
 

	
 
Monitor the website update service with:
 

	
 
    systemctl list-timers --all
 
    journalctl --catalog --follow --unit conservancy-www-update.service
 

	
 
Updates will fail unless `/var/www/website` has a git upstream, so set that with:
 

	
0 comments (0 inline, 0 general)