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.
PHP coolifydatabasesdeploymentdockerdocker-composeinertiajslaravelmariadbmysqlnextjsnodejsphppostgresredisself-hostedself-hostingserverstatic-sitesveltesvelte5
refactor: Refresh application to get latest database changes
Andras Bacsaie068581862c8
diff --git a/app/Livewire/Project/Application/General.php b/app/Livewire/Project/Application/General.phpindex 77593bf0ac..9b4c074c11 100644--- a/app/Livewire/Project/Application/General.php+++ b/app/Livewire/Project/Application/General.php@@ -179,6 +179,11 @@ class General extends Componentif ($isInit && $this->application->docker_compose_raw) {return;}++ // Must reload the application to get the latest database changes+ // Why? Not sure, but it works.+ $this->application->refresh();+['parsedServices' => $this->parsedServices, 'initialDockerComposeLocation' => $this->initialDockerComposeLocation] = $this->application->loadComposeFile($isInit);if (is_null($this->parsedServices)) {$this->dispatch('error', 'Failed to parse your docker-compose file. Please check the syntax and try again.');