refactor: Refresh application to get latest database changes
This commit is contained in:
parent
4904b33a0f
commit
e068581862
1 changed files with 5 additions and 0 deletions
|
|
@ -179,6 +179,11 @@ public function loadComposeFile($isInit = false)
|
|||
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.');
|
||||
|
|
|
|||
Loading…
Reference in a new issue