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: stop/start UI on apps and dbs

Andras Bacsaideece51e83b3
diff --git a/app/Http/Livewire/Project/Application/Heading.php b/app/Http/Livewire/Project/Application/Heading.php
index 8c0da7a1e8..6bf72e1d07 100644
--- a/app/Http/Livewire/Project/Application/Heading.php
+++ b/app/Http/Livewire/Project/Application/Heading.php
@@ -68,10 +68,11 @@ class Heading extends Component
["docker rm -f {$containerName}"],
$this->application->destination->server
);
- $this->application->status = 'stopped';
+ $this->application->status = 'exited';
$this->application->save();
// $this->application->environment->project->team->notify(new StatusChanged($this->application));
}
}
+ $this->application->refresh();
}
}
diff --git a/app/Http/Livewire/Project/Database/Heading.php b/app/Http/Livewire/Project/Database/Heading.php
index 60144073e9..3389ac80a8 100644
--- a/app/Http/Livewire/Project/Database/Heading.php
+++ b/app/Http/Livewire/Project/Database/Heading.php
@@ -43,7 +43,7 @@ class Heading extends Component
stopPostgresProxy($this->database);
$this->database->is_public = false;
}
- $this->database->status = 'stopped';
+ $this->database->status = 'exited';
$this->database->save();
$this->check_status();
// $this->database->environment->project->team->notify(new StatusChanged($this->database));