fix: service template generator + appwrite

This commit is contained in:
Andras Bacsai 2023-10-24 10:19:12 +02:00
parent 8bfc1a7c06
commit 69691b2ca7
3 changed files with 6 additions and 4 deletions

View File

@ -89,7 +89,9 @@ private function process_file($file)
'compose' => $yaml,
];
if ($env_file) {
$payload['envs'] = $env_file;
$env_file_content = file_get_contents(base_path("templates/compose/$env_file"));
$env_file_base64 = base64_encode($env_file_content);
$payload['envs'] = $env_file_base64;
}
return $payload;
}

View File

@ -6,8 +6,8 @@
class ComposeModal extends Component
{
public string $raw;
public string $actual;
public ?string $raw = null;
public ?string $actual = null;
public function render()
{
return view('livewire.project.service.compose-modal');

File diff suppressed because one or more lines are too long