This commit is contained in:
parent
33c68c2f44
commit
749f525f83
44 changed files with 5380 additions and 3532 deletions
|
|
@ -11,10 +11,20 @@ Documentation=https://forgejo.catcrafts.net/Catcrafts/catcrafts.net
|
|||
[Service]
|
||||
Type=oneshot
|
||||
|
||||
# Verify the freshly deployed binary before cutting over. --selftest exercises
|
||||
# the escaping and JSON layers that produce every byte of markup the site
|
||||
# emits; if it fails, the currently-running (working) server is left alone
|
||||
# rather than replaced with a broken one.
|
||||
ExecStartPre=/srv/catcrafts-app/catcrafts-server --selftest
|
||||
# Verify the freshly deployed binary before cutting over. The unit tests run
|
||||
# in CI (crafter-build test) before anything is shipped, so what this gate
|
||||
# checks is the part CI cannot: that THIS binary executes on THIS host — the
|
||||
# dynamic loader finds libmsquic (the first real deploy died exactly there,
|
||||
# exit 127) — and renders a page from the deployed content. If it fails, the
|
||||
# currently-running (working) server is left alone rather than replaced with
|
||||
# a broken one.
|
||||
#
|
||||
# WorkingDirectory because --render loads ./content; StandardOutput=null so
|
||||
# the rendered HTML does not land in the journal on every deploy (stderr,
|
||||
# where failures speak, still does).
|
||||
WorkingDirectory=/srv/catcrafts-app
|
||||
StandardOutput=null
|
||||
StandardError=journal
|
||||
ExecStartPre=/srv/catcrafts-app/catcrafts-server --render /
|
||||
|
||||
ExecStart=/usr/bin/systemctl restart catcrafts-server.service
|
||||
|
|
|
|||
Loading…
Reference in a new issue