Restart OpsProof after deployment
This commit is contained in:
parent
66abbd29b8
commit
abb8344e47
|
|
@ -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
|
||||
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue