refactor: Refresh application to get latest database changes

This commit is contained in:
Andras Bacsai
2024-08-12 11:35:30 +02:00
parent 4904b33a0f
commit e068581862

View File

@@ -179,6 +179,11 @@ class General extends Component
if ($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.');