website/bin/deploy/systemd/conservancy-www-db.path
Ben Sturmfels 55ee5b53b6
Add a basic script to "push" deploy
Currently updates are published by the "conservancy-www-update.sh" that does a
"pull" deploy with a 5-minutely job that runs on the web server. This doesn't
run `migrate`, `collectstatic` or restart the application, so certain types of
changes don't take effect, and even template changes often don't due to caching
template loader.

This script allows you to deploy more significant updates on-demand, but
requires SSH access.
2024-02-23 15:39:54 +11:00

9 lines
174 B
SYSTEMD

[Unit]
Description=Update Conservancy website database
Before=apache2.service
[Path]
PathChanged=/home/debian/django-supporters-list.sql
[Install]
WantedBy=apache2.service