Skip to content

Commit

Permalink
fix: #256 limit domain length to meet docker dns expectations 4
Browse files Browse the repository at this point in the history
  • Loading branch information
bohdan-shulha committed Nov 23, 2024
1 parent 0f0eed2 commit 72c57c6
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions app/Models/DeploymentData.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@

use App\Models\DeploymentData\Process;
use App\Rules\UniqueInArray;
use Illuminate\Support\Str;
use Illuminate\Validation\ValidationException;
use Spatie\LaravelData\Attributes\DataCollectionOf;
use Spatie\LaravelData\Attributes\Validation\Max;
Expand Down Expand Up @@ -89,7 +88,7 @@ public function fork(string $ref, array $processData, array $workerData): Deploy

$result = $this->toArray();

$result['internalDomain'] = Str::slug($ref).'.'.$this->internalDomain;
$result['internalDomain'] = $this->internalDomain;

$result['processes'] = [
$process->copyWith($processData)->toArray(),
Expand Down

0 comments on commit 72c57c6

Please sign in to comment.