Restart OpsProof after deployment
Homelab Main / validate (push) Failing after 1m27s Details
Homelab Main / running-update (push) Has been skipped Details
Homelab Main / debian-ops (push) Has been skipped Details

This commit is contained in:
juvenal.diaz 2026-12-04 15:32:08 -06:00
parent 66abbd29b8
commit abb8344e47
3 changed files with 8 additions and 2 deletions

View File

@ -45,7 +45,9 @@ directory. Jeannie resolves the database account's UID and GID from the image
before preparing the bind mount, so it does not depend on a host-specific
numeric account. The single OpsProof process uses Laravel Go's supported
in-memory cache and session stores; durable application records remain in
PostgreSQL. It does not replace Debian's system Go.
PostgreSQL. A successful redeployment explicitly restarts the systemd service
so updated listen addresses and other environment values take effect. It does
not replace Debian's system Go.
## Security boundary

View File

@ -5908,7 +5908,8 @@ ReadWritePaths=${install_dir}/current/storage
WantedBy=multi-user.target
UNIT_EOF
sudo systemctl daemon-reload
sudo systemctl enable --now opsproof.service
sudo systemctl enable opsproof.service
sudo systemctl restart opsproof.service
until curl -fsS --connect-timeout 3 "http://${bind_ip}:${http_port}/up" >/dev/null; do
if ((elapsed >= 90)); then

View File

@ -86,6 +86,9 @@ class OpsProofPipelineTests(unittest.TestCase):
pipeline.index("GOTOOLCHAIN=local go test ./..."),
)
self.assertIn("opsproof.service", pipeline)
self.assertIn("sudo systemctl enable opsproof.service", pipeline)
self.assertIn("sudo systemctl restart opsproof.service", pipeline)
self.assertNotIn("sudo systemctl enable --now opsproof.service", pipeline)
self.assertIn("deploy-opsproof)", command)
self.assertIn('"deploy-opsproof": true', server)