This commit is contained in:
parent
fb2f6079cc
commit
934c94cb5c
50 changed files with 10464 additions and 758 deletions
20
deploy/catcrafts-deploy.service
Normal file
20
deploy/catcrafts-deploy.service
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
# Triggered by catcrafts-deploy.path when CI touches the deploy marker.
|
||||
#
|
||||
# Deliberately does exactly one thing. It is reachable from anything that can
|
||||
# write the marker file, so it must not be a general-purpose hook — no scripts
|
||||
# from the deployed tree, no arguments derived from the marker's contents.
|
||||
|
||||
[Unit]
|
||||
Description=Restart catcrafts.net backend after a deploy
|
||||
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
|
||||
|
||||
ExecStart=/usr/bin/systemctl restart catcrafts-server.service
|
||||
Loading…
Reference in a new issue