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
added comments and removed temp ones
ayntk-aie67e03f73f2c
diff --git a/app/Actions/Service/DeleteService.php b/app/Actions/Service/DeleteService.phpindex 13b5cc50b0..521a70e838 100644--- a/app/Actions/Service/DeleteService.php+++ b/app/Actions/Service/DeleteService.php@@ -35,7 +35,7 @@ class DeleteService$commands[] = "docker volume rm -f $storage->name";}- // Execute all commands+ // Execute volume deletion first, this must be done first otherwise volumes will not be deleted.if (!empty($commands)) {foreach ($commands as $command) {$result = instant_remote_process([$command], $server, false);@@ -46,22 +46,18 @@ class DeleteService}}- // Delete networks if the flag is setif ($deleteConnectedNetworks) {$uuid = $service->uuid;$service->delete_connected_networks($uuid);}- // Command to remove the service itself$commands[] = "docker rm -f $service->uuid";- // Execute all commands+ // Executing remaining commandsinstant_remote_process($commands, $server, false);-} catch (\Exception $e) {throw new \Exception($e->getMessage());} finally {- // Delete configurations if the flag is setif ($deleteConfigurations) {$service->delete_configurations();}@@ -77,10 +73,9 @@ class DeleteService$service->tags()->detach();$service->forceDelete();- // Run cleanup if images need to be deletedif ($deleteImages) {CleanupDocker::run($server, true);}}}-}\ No newline at end of file+}