2023-09-14 08:14:22 +00:00
|
|
|
Install 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
|
|
|
|
|
|
|
|
Monitor 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
|
2023-09-14 08:21:00 +00:00
|
|
|
|
|
|
|
Note that the update script does not run `migrate`.
|