Skip to content

An open-source, self-hostable PaaS alternative to Vercel, Heroku & Netlify that lets you easily deploy static sites, databases, full-stack applications and 360+ one-click services on your own servers.

fix: ensure service state is refreshed and compose configurations are saved after submission

Andras Bacsai9507f602dfc9
diff --git a/app/Livewire/Project/Service/StackForm.php b/app/Livewire/Project/Service/StackForm.php
index 8a7b6e0902..72ae6915a7 100644
--- a/app/Livewire/Project/Service/StackForm.php
+++ b/app/Livewire/Project/Service/StackForm.php
@@ -149,9 +149,10 @@ class StackForm extends Component
$this->service->save();
$this->service->saveExtraFields($this->fields);
$this->service->parse();
- $this->service->refresh();
- $this->service->saveComposeConfigs();
});
+ // Refresh and write files after a successful commit
+ $this->service->refresh();
+ $this->service->saveComposeConfigs();
$this->dispatch('refreshEnvs');
$this->dispatch('refreshServices');