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
fix: service deletion function
Andras Bacsai9e09c449cf63
diff --git a/app/Actions/Service/DeleteService.php b/app/Actions/Service/DeleteService.phpindex c42a8ec4a4..743158c2df 100644--- a/app/Actions/Service/DeleteService.php+++ b/app/Actions/Service/DeleteService.php@@ -32,13 +32,14 @@ class DeleteService}$database->forceDelete();}- foreach ($storagesToDelete as $storage) {- $commands[] = "docker volume rm -f $storage->name";- }- $commands[] = "docker rm -f $service->uuid";-- instant_remote_process($commands, $server, false);+ if ($server->isFunctional()) {+ foreach ($storagesToDelete as $storage) {+ $commands[] = "docker volume rm -f $storage->name";+ }+ $commands[] = "docker rm -f $service->uuid";+ instant_remote_process($commands, $server, false);+ }$service->forceDelete();}}