This commit is contained in:
Andras Bacsai 2023-10-09 20:37:42 +02:00
parent 3dab1eb92e
commit f2c32b9aeb
3 changed files with 4 additions and 4 deletions

View File

@ -44,12 +44,12 @@ public function uniqueId(): string
public function handle()
{
try {
ray("checking server status for {$this->server->name}");
// ray("checking server status for {$this->server->name}");
// ray()->clearAll();
$serverUptimeCheckNumber = $this->server->unreachable_count;
$serverUptimeCheckNumberMax = 3;
ray('checking # ' . $serverUptimeCheckNumber);
// ray('checking # ' . $serverUptimeCheckNumber);
if ($serverUptimeCheckNumber >= $serverUptimeCheckNumberMax) {
if ($this->server->unreachable_email_sent === false) {
ray('Server unreachable, sending notification...');

View File

@ -247,7 +247,7 @@ function startPostgresProxy(StandalonePostgresql $database)
"mkdir -p $configuration_dir",
"echo '{$nginxconf_base64}' | base64 -d > $configuration_dir/nginx.conf",
"echo '{$dockercompose_base64}' | base64 -d > $configuration_dir/docker-compose.yaml",
"docker compose --project-directory {$configuration_dir} up -d >/dev/null",
"docker compose --project-directory {$configuration_dir} up -d --remove-orphans >/dev/null",
], $database->destination->server);

View File

@ -16,7 +16,7 @@
@if ($backup->save_s3)
<div class="pb-6">
<x-forms.select id="backup.s3_storage_id" label="S3 Storage" required>
<option value="default" disabled>Select a S3 storage</option>
<option value="default">Select a S3 storage</option>
@foreach ($s3s as $s3)
<option value="{{ $s3->id }}">{{ $s3->name }}</option>
@endforeach