Files
@ 5656bd3062ce
Branch filter:
Location: website/systemd/README.md - annotation
5656bd3062ce
1.2 KiB
text/markdown
usethesource: add to What We Do - getting real!
a6897a0f7232 03e06738a00c 03e06738a00c 03e06738a00c a6897a0f7232 053504d099b8 053504d099b8 053504d099b8 053504d099b8 053504d099b8 053504d099b8 03e06738a00c aef9d18eb4c0 a6897a0f7232 03e06738a00c 03e06738a00c 03e06738a00c 053504d099b8 03e06738a00c 053504d099b8 053504d099b8 053504d099b8 053504d099b8 053504d099b8 053504d099b8 053504d099b8 053504d099b8 3c79fa50b554 3c79fa50b554 03e06738a00c 03e06738a00c 03e06738a00c 03e06738a00c a6897a0f7232 a6897a0f7232 a6897a0f7232 | # 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:
git remote add upstream https://k.sfconservancy.org/website
git branch --set-upstream-to=upstream/master master
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
automatically when the file `django-supporters-list.sql` file is modified. These
include the fundraising total and sustainers to be publicly acknowledged.
|