fix: service template generator + appwrite
This commit is contained in:
parent
8bfc1a7c06
commit
69691b2ca7
@ -89,7 +89,9 @@ class GenerateServiceTemplates extends Command
|
|||||||
'compose' => $yaml,
|
'compose' => $yaml,
|
||||||
];
|
];
|
||||||
if ($env_file) {
|
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;
|
return $payload;
|
||||||
}
|
}
|
||||||
|
@ -6,8 +6,8 @@ use Livewire\Component;
|
|||||||
|
|
||||||
class ComposeModal extends Component
|
class ComposeModal extends Component
|
||||||
{
|
{
|
||||||
public string $raw;
|
public ?string $raw = null;
|
||||||
public string $actual;
|
public ?string $actual = null;
|
||||||
public function render()
|
public function render()
|
||||||
{
|
{
|
||||||
return view('livewire.project.service.compose-modal');
|
return view('livewire.project.service.compose-modal');
|
||||||
|
File diff suppressed because one or more lines are too long
Loading…
x
Reference in New Issue
Block a user