This commit is contained in:
@@ -44,8 +44,12 @@ jobs:
|
|||||||
|
|
||||||
- name: Restart Contact API
|
- name: Restart Contact API
|
||||||
run: |
|
run: |
|
||||||
sudo -n systemctl restart jody-contact-api
|
SYSTEMCTL_BIN="/usr/bin/systemctl"
|
||||||
sudo -n systemctl is-active --quiet jody-contact-api
|
if [ ! -x "$SYSTEMCTL_BIN" ]; then
|
||||||
|
SYSTEMCTL_BIN="/bin/systemctl"
|
||||||
|
fi
|
||||||
|
sudo -n "$SYSTEMCTL_BIN" restart jody-contact-api
|
||||||
|
sudo -n "$SYSTEMCTL_BIN" is-active --quiet jody-contact-api
|
||||||
|
|
||||||
- name: Health Check Contact API
|
- name: Health Check Contact API
|
||||||
run: curl --fail --silent http://127.0.0.1:8787/health
|
run: curl --fail --silent http://127.0.0.1:8787/health
|
||||||
|
|||||||
Reference in New Issue
Block a user