Add the conservancy-www-db.path Systemd file
This runs the SQL update when the relevant file is modified.
This commit is contained in:
parent
1289717a6d
commit
a6897a0f72
2 changed files with 15 additions and 5 deletions
|
@ -1,8 +1,8 @@
|
|||
# SystemD services
|
||||
# Systemd services
|
||||
|
||||
## Installing
|
||||
|
||||
Install all SystemD services with:
|
||||
Install all Systemd services with:
|
||||
|
||||
cp systemd/conservancy-www-*.{service,timer} /etc/systemd/system
|
||||
systemctl enable conservancy-www-cleanup.service
|
||||
|
@ -10,6 +10,7 @@ Install all SystemD services with:
|
|||
systemctl enable conservancy-www-update.timer
|
||||
systemctl start conservancy-www-update.timer
|
||||
systemctl enable conservancy-www-db.service
|
||||
systemctl start conservancy-www-db.path
|
||||
|
||||
|
||||
## Website updates
|
||||
|
@ -29,6 +30,6 @@ Note that the update script does not run `migrate`.
|
|||
|
||||
## Fundraiser/sustainer database updates
|
||||
|
||||
The `conservancy-www-db.service` applies SQL updates to the website
|
||||
database. These include the fundraising total and sustainers to be publicly
|
||||
acknowledged.
|
||||
The `conservancy-www-db.service` applies SQL updates to the website database
|
||||
automatically when the file `django-supporters-list.sql` file is modified. These
|
||||
include the fundraising total and sustainers to be publicly acknowledged.
|
||||
|
|
9
systemd/conservancy-www-db.path
Normal file
9
systemd/conservancy-www-db.path
Normal file
|
@ -0,0 +1,9 @@
|
|||
[Unit]
|
||||
Description=Update Conservancy website database
|
||||
Before=apache2.service
|
||||
|
||||
[Path]
|
||||
PathChanged=/home/debian/django-supporters-list.sql
|
||||
|
||||
[Install]
|
||||
WantedBy=apache2.service
|
Loading…
Reference in a new issue