Skip to content
Snippets Groups Projects
Commit 58a3092a authored by jurgenhaas's avatar jurgenhaas
Browse files

Merge branch 'develop' into 'main'

Merging develop into main

See merge request !11
parents 1e345f76 08ada0ec
No related branches found
Tags v3.7.24
1 merge request!11Merging develop into main
Pipeline #522158 passed
......@@ -6,6 +6,7 @@ use Henrywhitaker3\Healthchecks\Exceptions\HealthchecksAccountLimitReachedExcept
use Henrywhitaker3\Healthchecks\Exceptions\HealthchecksFailureException;
use Henrywhitaker3\Healthchecks\Exceptions\HealthchecksUnauthorisedException;
use Henrywhitaker3\Healthchecks\Exceptions\HealthchecksUuidNotFoundException;
use Henrywhitaker3\Healthchecks\Healthchecks;
use Henrywhitaker3\Healthchecks\HealthchecksManager;
use LakeDrops\Component\Composer\BaseHandler;
use LakeDrops\DockerTraefik\Traefik;
......@@ -267,7 +268,7 @@ class Handler extends BaseHandler {
'drupal' => $drupal,
'traefik' => $traefik,
'projectroot' => $root . '/app',
'projectrootbackup' => $root . '/files/db',
'projectrootbackup' => $root . '/backup',
'projectrootdb' => $root . '/db',
'projectrootfiles' => $root . '/files',
'projectrootredis' => $root . '/redis',
......@@ -570,8 +571,12 @@ class Handler extends BaseHandler {
}
try {
$check = $hj_manager->createCheck($task);
$parts = explode('/', $check['ping_url']);
$uuid = array_pop($parts);
$hj_check = new Healthchecks($uuid);
$hj_check->success();
}
catch (HealthchecksAccountLimitReachedException | HealthchecksUnauthorisedException $e) {
catch (HealthchecksFailureException | HealthchecksUuidNotFoundException | HealthchecksAccountLimitReachedException | HealthchecksUnauthorisedException $e) {
// Ignoring this for now.
}
}
......
......@@ -134,7 +134,7 @@ services:
- {{ php.ssh_auth_sock }}:/ssh-agent
{% endif %}
{% if backup.enable|default(0) %}
- {{ projectrootbackup }}:/var/backups/mysql
- {{ projectrootfiles }}/db:/var/backups/mysql
{% endif %}
extra_hosts:
- '{{ projectdomain }}:{{ docker0.ip }}'
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment