fix: stop/start UI on apps and dbs

This commit is contained in:
Andras Bacsai 2023-09-18 12:38:11 +02:00
parent e2ab569244
commit deece51e83
2 changed files with 3 additions and 2 deletions

View File

@ -68,10 +68,11 @@ public function stop()
["docker rm -f {$containerName}"], ["docker rm -f {$containerName}"],
$this->application->destination->server $this->application->destination->server
); );
$this->application->status = 'stopped'; $this->application->status = 'exited';
$this->application->save(); $this->application->save();
// $this->application->environment->project->team->notify(new StatusChanged($this->application)); // $this->application->environment->project->team->notify(new StatusChanged($this->application));
} }
} }
$this->application->refresh();
} }
} }

View File

@ -43,7 +43,7 @@ public function stop()
stopPostgresProxy($this->database); stopPostgresProxy($this->database);
$this->database->is_public = false; $this->database->is_public = false;
} }
$this->database->status = 'stopped'; $this->database->status = 'exited';
$this->database->save(); $this->database->save();
$this->check_status(); $this->check_status();
// $this->database->environment->project->team->notify(new StatusChanged($this->database)); // $this->database->environment->project->team->notify(new StatusChanged($this->database));