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
Remove all ray() calls
Lucas Michotd557a22b9194
diff --git a/app/Actions/Application/GenerateConfig.php b/app/Actions/Application/GenerateConfig.phpindex d38f9c28bd..991146b482 100644--- a/app/Actions/Application/GenerateConfig.php+++ b/app/Actions/Application/GenerateConfig.php@@ -11,8 +11,6 @@ class GenerateConfigpublic function handle(Application $application, bool $is_json = false){- ray()->clearAll();-return $application->generateConfig(is_json: $is_json);}}diff --git a/app/Actions/Application/StopApplication.php b/app/Actions/Application/StopApplication.phpindex 61005845be..cab7e45f0e 100644--- a/app/Actions/Application/StopApplication.php+++ b/app/Actions/Application/StopApplication.php@@ -17,7 +17,6 @@ class StopApplicationif (! $server->isFunctional()) {return 'Server is not functional';}- ray('Stopping application: '.$application->name);if ($server->isSwarm()) {instant_remote_process(["docker stack rm {$application->uuid}"], $server);@@ -36,8 +35,6 @@ class StopApplicationCleanupDocker::dispatch($server, true);}} catch (\Exception $e) {- ray($e->getMessage());-return $e->getMessage();}}diff --git a/app/Actions/Application/StopApplicationOneServer.php b/app/Actions/Application/StopApplicationOneServer.phpindex da8c700fe1..b13b10efd6 100644--- a/app/Actions/Application/StopApplicationOneServer.php+++ b/app/Actions/Application/StopApplicationOneServer.php@@ -32,8 +32,6 @@ class StopApplicationOneServer}}} catch (\Exception $e) {- ray($e->getMessage());-return $e->getMessage();}}diff --git a/app/Actions/CoolifyTask/PrepareCoolifyTask.php b/app/Actions/CoolifyTask/PrepareCoolifyTask.phpindex 686b60780e..6676b79376 100644--- a/app/Actions/CoolifyTask/PrepareCoolifyTask.php+++ b/app/Actions/CoolifyTask/PrepareCoolifyTask.php@@ -48,7 +48,6 @@ class PrepareCoolifyTaskcall_event_data: $this->remoteProcessArgs->call_event_data,);if ($this->remoteProcessArgs->type === ActivityTypes::COMMAND->value) {- ray('Dispatching a high priority job');dispatch($job)->onQueue('high');} else {dispatch($job);diff --git a/app/Actions/CoolifyTask/RunRemoteProcess.php b/app/Actions/CoolifyTask/RunRemoteProcess.phpindex c691f52c0b..c75a30ae82 100644--- a/app/Actions/CoolifyTask/RunRemoteProcess.php+++ b/app/Actions/CoolifyTask/RunRemoteProcess.php@@ -125,7 +125,6 @@ class RunRemoteProcess]));}} catch (\Throwable $e) {- ray($e);}}diff --git a/app/Actions/License/CheckResaleLicense.php b/app/Actions/License/CheckResaleLicense.phpindex 55af1a8c02..26a1ff7bf9 100644--- a/app/Actions/License/CheckResaleLicense.php+++ b/app/Actions/License/CheckResaleLicense.php@@ -25,8 +25,6 @@ class CheckResaleLicense// }$base_url = config('coolify.license_url');$instance_id = config('app.id');-- ray("Checking license key against $base_url/lemon/validate");$data = Http::withHeaders(['Accept' => 'application/json',])->get("$base_url/lemon/validate", [@@ -34,7 +32,6 @@ class CheckResaleLicense'instance_id' => $instance_id,])->json();if (data_get($data, 'valid') === true && data_get($data, 'license_key.status') === 'active') {- ray('Valid & active license key');$settings->update(['is_resale_license_active' => true,]);@@ -48,7 +45,6 @@ class CheckResaleLicense'instance_id' => $instance_id,])->json();if (data_get($data, 'activated') === true) {- ray('Activated license key');$settings->update(['is_resale_license_active' => true,]);@@ -60,7 +56,6 @@ class CheckResaleLicense}throw new \Exception('Cannot activate license key.');} catch (\Throwable $e) {- ray($e);$settings->update(['resale_license' => null,'is_resale_license_active' => false,diff --git a/app/Actions/Proxy/CheckProxy.php b/app/Actions/Proxy/CheckProxy.phpindex 03a0beddf7..d648047581 100644--- a/app/Actions/Proxy/CheckProxy.php+++ b/app/Actions/Proxy/CheckProxy.php@@ -88,7 +88,6 @@ class CheckProxy$portsToCheck = [];}} catch (\Exception $e) {- ray($e->getMessage());}if (count($portsToCheck) === 0) {return false;diff --git a/app/Actions/Proxy/StartProxy.php b/app/Actions/Proxy/StartProxy.phpindex f20c10123e..e9564d410a 100644--- a/app/Actions/Proxy/StartProxy.php+++ b/app/Actions/Proxy/StartProxy.php@@ -72,7 +72,6 @@ class StartProxyreturn 'OK';}} catch (\Throwable $e) {- ray($e);throw $e;}}diff --git a/app/Actions/Server/ConfigureCloudflared.php b/app/Actions/Server/ConfigureCloudflared.phpindex 0d36e88630..0819da07ad 100644--- a/app/Actions/Server/ConfigureCloudflared.php+++ b/app/Actions/Server/ConfigureCloudflared.php@@ -40,7 +40,6 @@ class ConfigureCloudflared]);instant_remote_process($commands, $server);} catch (\Throwable $e) {- ray($e);$server->settings->is_cloudflare_tunnel = false;$server->settings->save();throw $e;diff --git a/app/Actions/Server/InstallDocker.php b/app/Actions/Server/InstallDocker.phpindex 2e1df81852..fd4dd150cb 100644--- a/app/Actions/Server/InstallDocker.php+++ b/app/Actions/Server/InstallDocker.php@@ -16,7 +16,6 @@ class InstallDockerif (! $supported_os_type) {throw new \Exception('Server OS type is not supported for automated installation. Please install Docker manually before continuing: <a target="_blank" class="underline" href="https://coolify.io/docs/installation#manually">documentation</a>.');}- ray('Installing Docker on server: '.$server->name.' ('.$server->ip.')'.' with OS type: '.$supported_os_type);$dockerVersion = '26.0';$config = base64_encode('{"log-driver": "json-file",diff --git a/app/Actions/Service/DeleteService.php b/app/Actions/Service/DeleteService.phpindex f28e5490e5..9c4b0349cd 100644--- a/app/Actions/Service/DeleteService.php+++ b/app/Actions/Service/DeleteService.php@@ -40,7 +40,6 @@ class DeleteServiceforeach ($commands as $command) {$result = instant_remote_process([$command], $server, false);if ($result !== 0) {- ray("Failed to execute: $command");}}}diff --git a/app/Actions/Service/StartService.php b/app/Actions/Service/StartService.phpindex 06d2e0efb3..5b8279221f 100644--- a/app/Actions/Service/StartService.php+++ b/app/Actions/Service/StartService.php@@ -12,7 +12,6 @@ class StartServicepublic function handle(Service $service){- ray('Starting service: '.$service->name);$service->saveComposeConfigs();$commands[] = 'cd '.$service->workdir();$commands[] = "echo 'Saved configuration files to {$service->workdir()}.'";diff --git a/app/Actions/Service/StopService.php b/app/Actions/Service/StopService.phpindex 5c7bbc2aa9..046d94ced4 100644--- a/app/Actions/Service/StopService.php+++ b/app/Actions/Service/StopService.php@@ -28,8 +28,6 @@ class StopService}}} catch (\Exception $e) {- ray($e->getMessage());-return $e->getMessage();}}diff --git a/app/Console/Commands/CleanupStuckedResources.php b/app/Console/Commands/CleanupStuckedResources.phpindex 66c25ec27a..da757c99fc 100644--- a/app/Console/Commands/CleanupStuckedResources.php+++ b/app/Console/Commands/CleanupStuckedResources.php@@ -30,7 +30,6 @@ class CleanupStuckedResources extends Commandpublic function handle(){- ray('Running cleanup stucked resources.');echo "Running cleanup stucked resources.\n";$this->cleanup_stucked_resources();}diff --git a/app/Console/Commands/CloudCleanupSubscriptions.php b/app/Console/Commands/CloudCleanupSubscriptions.phpindex d220aa00b6..5054d125c4 100644--- a/app/Console/Commands/CloudCleanupSubscriptions.php+++ b/app/Console/Commands/CloudCleanupSubscriptions.php@@ -19,7 +19,6 @@ class CloudCleanupSubscriptions extends Commandreturn;}- ray()->clearAll();$this->info('Cleaning up subcriptions teams');$stripe = new \Stripe\StripeClient(config('subscription.stripe_api_key'));diff --git a/app/Console/Commands/Emails.php b/app/Console/Commands/Emails.phpindex ded729114a..cda4ca84f1 100644--- a/app/Console/Commands/Emails.php+++ b/app/Console/Commands/Emails.php@@ -124,7 +124,6 @@ class Emails extends Command$applications = Application::all();foreach ($applications as $application) {$deployments = $application->get_last_days_deployments();- ray($deployments);if ($deployments->isEmpty()) {continue;}diff --git a/app/Console/Commands/Init.php b/app/Console/Commands/Init.phpindex ad7bff86da..891d1b5382 100644--- a/app/Console/Commands/Init.php+++ b/app/Console/Commands/Init.php@@ -219,7 +219,6 @@ class Init extends Command}$queued_inprogress_deployments = ApplicationDeploymentQueue::whereIn('status', [ApplicationDeploymentStatus::IN_PROGRESS->value, ApplicationDeploymentStatus::QUEUED->value])->get();foreach ($queued_inprogress_deployments as $deployment) {- ray($deployment->id, $deployment->status);echo "Cleaning up deployment: {$deployment->id}\n";$deployment->status = ApplicationDeploymentStatus::FAILED->value;$deployment->save();diff --git a/app/Console/Commands/NotifyDemo.php b/app/Console/Commands/NotifyDemo.phpindex 81333b8682..f0131b7b2a 100644--- a/app/Console/Commands/NotifyDemo.php+++ b/app/Console/Commands/NotifyDemo.php@@ -36,8 +36,6 @@ class NotifyDemo extends Commandreturn;}-- ray($channel);}private function showHelp()diff --git a/app/Console/Kernel.php b/app/Console/Kernel.phpindex 1e55aa57f7..e954b98c92 100644--- a/app/Console/Kernel.php+++ b/app/Console/Kernel.php@@ -134,7 +134,6 @@ class Kernel extends ConsoleKernelcontinue;}if (is_null(data_get($scheduled_backup, 'database'))) {- ray('database not found');$scheduled_backup->delete();continue;@@ -170,7 +169,6 @@ class Kernel extends ConsoleKernel$application = $scheduled_task->application;if (! $application && ! $service) {- ray('application/service attached to scheduled task does not exist');$scheduled_task->delete();continue;diff --git a/app/Events/FileStorageChanged.php b/app/Events/FileStorageChanged.phpindex 27fdc6b5c9..57004cf4c3 100644--- a/app/Events/FileStorageChanged.php+++ b/app/Events/FileStorageChanged.php@@ -16,7 +16,6 @@ class FileStorageChanged implements ShouldBroadcastpublic function __construct($teamId = null){- ray($teamId);if (is_null($teamId)) {throw new \Exception('Team id is null');}diff --git a/app/Exceptions/Handler.php b/app/Exceptions/Handler.phpindex 63fbfc8621..8c89bb07f9 100644--- a/app/Exceptions/Handler.php+++ b/app/Exceptions/Handler.php@@ -84,7 +84,6 @@ class Handler extends ExceptionHandlerif (str($e->getMessage())->contains('No space left on device')) {return;}- ray('reporting to sentry');Integration::captureUnhandledException($e);});}diff --git a/app/Http/Controllers/Api/ServersController.php b/app/Http/Controllers/Api/ServersController.phpindex 540069f85c..af4e008ef4 100644--- a/app/Http/Controllers/Api/ServersController.php+++ b/app/Http/Controllers/Api/ServersController.php@@ -249,7 +249,6 @@ class ServersController extends Controllerreturn $payload;});$server = $this->removeSensitiveData($server);- ray($server);return response()->json(serializeApiResponse(data_get($server, 'resources')));}diff --git a/app/Http/Controllers/Controller.php b/app/Http/Controllers/Controller.phpindex 38d9e22729..2a2fa6a99a 100644--- a/app/Http/Controllers/Controller.php+++ b/app/Http/Controllers/Controller.php@@ -142,7 +142,6 @@ class Controller extends BaseControllerabort(401);}} catch (\Throwable $e) {- ray($e->getMessage());throw $e;}}diff --git a/app/Http/Controllers/OauthController.php b/app/Http/Controllers/OauthController.phpindex 630d010459..3a3f18c9c4 100644--- a/app/Http/Controllers/OauthController.php+++ b/app/Http/Controllers/OauthController.php@@ -35,8 +35,6 @@ class OauthController extends Controllerreturn redirect('/');} catch (\Exception $e) {- ray($e->getMessage());-$errorCode = $e instanceof HttpException ? 'auth.failed' : 'auth.failed.callback';return redirect()->route('login')->withErrors([__($errorCode)]);diff --git a/app/Http/Controllers/Webhook/Bitbucket.php b/app/Http/Controllers/Webhook/Bitbucket.phpindex ef85d59e3c..8c74f95e5c 100644--- a/app/Http/Controllers/Webhook/Bitbucket.php+++ b/app/Http/Controllers/Webhook/Bitbucket.php@@ -16,7 +16,6 @@ class Bitbucket extends Controller{try {if (app()->isDownForMaintenance()) {- ray('Maintenance mode is on');$epoch = now()->valueOf();$data = ['attributes' => $request->attributes->all(),@@ -55,7 +54,6 @@ class Bitbucket extends Controller'message' => 'Nothing to do. No branch found in the request.',]);}- ray('Manual webhook bitbucket push event with branch: '.$branch);}if ($x_bitbucket_event === 'pullrequest:created' || $x_bitbucket_event === 'pullrequest:rejected' || $x_bitbucket_event === 'pullrequest:fulfilled') {$branch = data_get($payload, 'pullrequest.destination.branch.name');@@ -85,7 +83,6 @@ class Bitbucket extends Controller'status' => 'failed','message' => 'Invalid signature.',]);- ray('Invalid signature');continue;}@@ -96,13 +93,11 @@ class Bitbucket extends Controller'status' => 'failed','message' => 'Server is not functional.',]);- ray('Server is not functional: '.$application->destination->server->name);continue;}if ($x_bitbucket_event === 'repo:push') {if ($application->isDeployable()) {- ray('Deploying '.$application->name.' with branch '.$branch);$deployment_uuid = new Cuid2;queue_application_deployment(application: $application,@@ -126,7 +121,6 @@ class Bitbucket extends Controller}if ($x_bitbucket_event === 'pullrequest:created') {if ($application->isPRDeployable()) {- ray('Deploying preview for '.$application->name.' with branch '.$branch.' and base branch '.$base_branch.' and pull request id '.$pull_request_id);$deployment_uuid = new Cuid2;$found = ApplicationPreview::where('application_id', $application->id)->where('pull_request_id', $pull_request_id)->first();if (! $found) {@@ -171,7 +165,6 @@ class Bitbucket extends Controller}}if ($x_bitbucket_event === 'pullrequest:rejected' || $x_bitbucket_event === 'pullrequest:fulfilled') {- ray('Pull request rejected');$found = ApplicationPreview::where('application_id', $application->id)->where('pull_request_id', $pull_request_id)->first();if ($found) {$found->delete();@@ -191,12 +184,9 @@ class Bitbucket extends Controller}}}- ray($return_payloads);return response($return_payloads);} catch (Exception $e) {- ray($e);-return handleError($e);}}diff --git a/app/Http/Controllers/Webhook/Gitea.php b/app/Http/Controllers/Webhook/Gitea.phpindex e042b74c9a..3689ca7b3d 100644--- a/app/Http/Controllers/Webhook/Gitea.php+++ b/app/Http/Controllers/Webhook/Gitea.php@@ -19,15 +19,12 @@ class Gitea extends Controller$return_payloads = collect([]);$x_gitea_delivery = request()->header('X-Gitea-Delivery');if (app()->isDownForMaintenance()) {- ray('Maintenance mode is on');$epoch = now()->valueOf();$files = Storage::disk('webhooks-during-maintenance')->files();$gitea_delivery_found = collect($files)->filter(function ($file) use ($x_gitea_delivery) {return Str::contains($file, $x_gitea_delivery);})->first();if ($gitea_delivery_found) {- ray('Webhook already found');-return;}$data = [@@ -67,8 +64,6 @@ class Gitea extends Controller$removed_files = data_get($payload, 'commits.*.removed');$modified_files = data_get($payload, 'commits.*.modified');$changed_files = collect($added_files)->concat($removed_files)->concat($modified_files)->unique()->flatten();- ray($changed_files);- ray('Manual Webhook Gitea Push Event with branch: '.$branch);}if ($x_gitea_event === 'pull_request') {$action = data_get($payload, 'action');@@ -77,7 +72,6 @@ class Gitea extends Controller$pull_request_html_url = data_get($payload, 'pull_request.html_url');$branch = data_get($payload, 'pull_request.head.ref');$base_branch = data_get($payload, 'pull_request.base.ref');- ray('Webhook Gitea Pull Request Event with branch: '.$branch.' and base branch: '.$base_branch.' and pull request id: '.$pull_request_id);}if (! $branch) {return response('Nothing to do. No branch found in the request.');@@ -99,7 +93,6 @@ class Gitea extends Controller$webhook_secret = data_get($application, 'manual_webhook_secret_gitea');$hmac = hash_hmac('sha256', $request->getContent(), $webhook_secret);if (! hash_equals($x_hub_signature_256, $hmac) && ! isDev()) {- ray('Invalid signature');$return_payloads->push(['application' => $application->name,'status' => 'failed',@@ -122,7 +115,6 @@ class Gitea extends Controllerif ($application->isDeployable()) {$is_watch_path_triggered = $application->isWatchPathsTriggered($changed_files);if ($is_watch_path_triggered || is_null($application->watch_paths)) {- ray('Deploying '.$application->name.' with branch '.$branch);$deployment_uuid = new Cuid2;queue_application_deployment(application: $application,@@ -228,12 +220,9 @@ class Gitea extends Controller}}}- ray($return_payloads);return response($return_payloads);} catch (Exception $e) {- ray($e->getMessage());-return handleError($e);}}diff --git a/app/Http/Controllers/Webhook/Github.php b/app/Http/Controllers/Webhook/Github.phpindex 5f3ba933bd..3683adaa85 100644--- a/app/Http/Controllers/Webhook/Github.php+++ b/app/Http/Controllers/Webhook/Github.php@@ -25,15 +25,12 @@ class Github extends Controller$return_payloads = collect([]);$x_github_delivery = request()->header('X-GitHub-Delivery');if (app()->isDownForMaintenance()) {- ray('Maintenance mode is on');$epoch = now()->valueOf();$files = Storage::disk('webhooks-during-maintenance')->files();$github_delivery_found = collect($files)->filter(function ($file) use ($x_github_delivery) {return Str::contains($file, $x_github_delivery);})->first();if ($github_delivery_found) {- ray('Webhook already found');-return;}$data = [@@ -73,7 +70,6 @@ class Github extends Controller$removed_files = data_get($payload, 'commits.*.removed');$modified_files = data_get($payload, 'commits.*.modified');$changed_files = collect($added_files)->concat($removed_files)->concat($modified_files)->unique()->flatten();- ray('Manual Webhook GitHub Push Event with branch: '.$branch);}if ($x_github_event === 'pull_request') {$action = data_get($payload, 'action');@@ -82,7 +78,6 @@ class Github extends Controller$pull_request_html_url = data_get($payload, 'pull_request.html_url');$branch = data_get($payload, 'pull_request.head.ref');$base_branch = data_get($payload, 'pull_request.base.ref');- ray('Webhook GitHub Pull Request Event with branch: '.$branch.' and base branch: '.$base_branch.' and pull request id: '.$pull_request_id);}if (! $branch) {return response('Nothing to do. No branch found in the request.');@@ -104,7 +99,6 @@ class Github extends Controller$webhook_secret = data_get($application, 'manual_webhook_secret_github');$hmac = hash_hmac('sha256', $request->getContent(), $webhook_secret);if (! hash_equals($x_hub_signature_256, $hmac) && ! isDev()) {- ray('Invalid signature');$return_payloads->push(['application' => $application->name,'status' => 'failed',@@ -127,7 +121,6 @@ class Github extends Controllerif ($application->isDeployable()) {$is_watch_path_triggered = $application->isWatchPathsTriggered($changed_files);if ($is_watch_path_triggered || is_null($application->watch_paths)) {- ray('Deploying '.$application->name.' with branch '.$branch);$deployment_uuid = new Cuid2;queue_application_deployment(application: $application,@@ -232,12 +225,9 @@ class Github extends Controller}}}- ray($return_payloads);return response($return_payloads);} catch (Exception $e) {- ray($e->getMessage());-return handleError($e);}}@@ -249,15 +239,12 @@ class Github extends Controller$id = null;$x_github_delivery = $request->header('X-GitHub-Delivery');if (app()->isDownForMaintenance()) {- ray('Maintenance mode is on');$epoch = now()->valueOf();$files = Storage::disk('webhooks-during-maintenance')->files();$github_delivery_found = collect($files)->filter(function ($file) use ($x_github_delivery) {return Str::contains($file, $x_github_delivery);})->first();if ($github_delivery_found) {- ray('Webhook already found');-return;}$data = [@@ -313,7 +300,6 @@ class Github extends Controller$removed_files = data_get($payload, 'commits.*.removed');$modified_files = data_get($payload, 'commits.*.modified');$changed_files = collect($added_files)->concat($removed_files)->concat($modified_files)->unique()->flatten();- ray('Webhook GitHub Push Event: '.$id.' with branch: '.$branch);}if ($x_github_event === 'pull_request') {$action = data_get($payload, 'action');@@ -322,7 +308,6 @@ class Github extends Controller$pull_request_html_url = data_get($payload, 'pull_request.html_url');$branch = data_get($payload, 'pull_request.head.ref');$base_branch = data_get($payload, 'pull_request.base.ref');- ray('Webhook GitHub Pull Request Event: '.$id.' with branch: '.$branch.' and base branch: '.$base_branch.' and pull request id: '.$pull_request_id);}if (! $id || ! $branch) {return response('Nothing to do. No id or branch found.');@@ -356,7 +341,6 @@ class Github extends Controllerif ($application->isDeployable()) {$is_watch_path_triggered = $application->isWatchPathsTriggered($changed_files);if ($is_watch_path_triggered || is_null($application->watch_paths)) {- ray('Deploying '.$application->name.' with branch '.$branch);$deployment_uuid = new Cuid2;queue_application_deployment(application: $application,@@ -460,8 +444,6 @@ class Github extends Controllerreturn response($return_payloads);} catch (Exception $e) {- ray($e->getMessage());-return handleError($e);}}@@ -505,7 +487,6 @@ class Github extends Controllertry {$installation_id = $request->get('installation_id');if (app()->isDownForMaintenance()) {- ray('Maintenance mode is on');$epoch = now()->valueOf();$data = ['attributes' => $request->attributes->all(),diff --git a/app/Http/Controllers/Webhook/Gitlab.php b/app/Http/Controllers/Webhook/Gitlab.phpindex ec7f51a0d7..f56711bad5 100644--- a/app/Http/Controllers/Webhook/Gitlab.php+++ b/app/Http/Controllers/Webhook/Gitlab.php@@ -17,7 +17,6 @@ class Gitlab extends Controller{try {if (app()->isDownForMaintenance()) {- ray('Maintenance mode is on');$epoch = now()->valueOf();$data = ['attributes' => $request->attributes->all(),@@ -67,7 +66,6 @@ class Gitlab extends Controller$removed_files = data_get($payload, 'commits.*.removed');$modified_files = data_get($payload, 'commits.*.modified');$changed_files = collect($added_files)->concat($removed_files)->concat($modified_files)->unique()->flatten();- ray('Manual Webhook GitLab Push Event with branch: '.$branch);}if ($x_gitlab_event === 'merge_request') {$action = data_get($payload, 'object_attributes.action');@@ -84,7 +82,6 @@ class Gitlab extends Controllerreturn response($return_payloads);}- ray('Webhook GitHub Pull Request Event with branch: '.$branch.' and base branch: '.$base_branch.' and pull request id: '.$pull_request_id);}$applications = Application::where('git_repository', 'like', "%$full_name%");if ($x_gitlab_event === 'push') {@@ -117,7 +114,6 @@ class Gitlab extends Controller'status' => 'failed','message' => 'Invalid signature.',]);- ray('Invalid signature');continue;}@@ -128,7 +124,6 @@ class Gitlab extends Controller'status' => 'failed','message' => 'Server is not functional',]);- ray('Server is not functional: '.$application->destination->server->name);continue;}@@ -136,7 +131,6 @@ class Gitlab extends Controllerif ($application->isDeployable()) {$is_watch_path_triggered = $application->isWatchPathsTriggered($changed_files);if ($is_watch_path_triggered || is_null($application->watch_paths)) {- ray('Deploying '.$application->name.' with branch '.$branch);$deployment_uuid = new Cuid2;queue_application_deployment(application: $application,@@ -171,7 +165,6 @@ class Gitlab extends Controller'application_uuid' => $application->uuid,'application_name' => $application->name,]);- ray('Deployments disabled for '.$application->name);}}if ($x_gitlab_event === 'merge_request') {@@ -207,7 +200,6 @@ class Gitlab extends Controlleris_webhook: true,git_type: 'gitlab');- ray('Deploying preview for '.$application->name.' with branch '.$branch.' and base branch '.$base_branch.' and pull request id '.$pull_request_id);$return_payloads->push(['application' => $application->name,'status' => 'success',@@ -219,7 +211,6 @@ class Gitlab extends Controller'status' => 'failed','message' => 'Preview deployments disabled',]);- ray('Preview deployments disabled for '.$application->name);}} elseif ($action === 'closed' || $action === 'close' || $action === 'merge') {$found = ApplicationPreview::where('application_id', $application->id)->where('pull_request_id', $pull_request_id)->first();@@ -253,8 +244,6 @@ class Gitlab extends Controllerreturn response($return_payloads);} catch (Exception $e) {- ray($e->getMessage());-return handleError($e);}}diff --git a/app/Http/Controllers/Webhook/Stripe.php b/app/Http/Controllers/Webhook/Stripe.phpindex 1643225867..55c94a6183 100644--- a/app/Http/Controllers/Webhook/Stripe.php+++ b/app/Http/Controllers/Webhook/Stripe.php@@ -22,7 +22,6 @@ class Stripe extends Controller{try {if (app()->isDownForMaintenance()) {- ray('Maintenance mode is on');$epoch = now()->valueOf();$data = ['attributes' => $request->attributes->all(),diff --git a/app/Http/Controllers/Webhook/Waitlist.php b/app/Http/Controllers/Webhook/Waitlist.phpindex ea635836c9..dec8ca72dd 100644--- a/app/Http/Controllers/Webhook/Waitlist.php+++ b/app/Http/Controllers/Webhook/Waitlist.php@@ -13,7 +13,6 @@ class Waitlist extends Controller{$email = request()->get('email');$confirmation_code = request()->get('confirmation_code');- ray($email, $confirmation_code);try {$found = ModelsWaitlist::where('uuid', $confirmation_code)->where('email', $email)->first();if ($found) {@@ -36,7 +35,6 @@ class Waitlist extends Controllerreturn redirect()->route('dashboard');} catch (Exception $e) {send_internal_notification('Waitlist confirmation failed: '.$e->getMessage());- ray($e->getMessage());return redirect()->route('dashboard');}@@ -58,7 +56,6 @@ class Waitlist extends Controllerreturn redirect()->route('dashboard');} catch (Exception $e) {send_internal_notification('Waitlist cancellation failed: '.$e->getMessage());- ray($e->getMessage());return redirect()->route('dashboard');}diff --git a/app/Http/Middleware/ApiAllowed.php b/app/Http/Middleware/ApiAllowed.phpindex 471e6d602e..dc6be5da3d 100644--- a/app/Http/Middleware/ApiAllowed.php+++ b/app/Http/Middleware/ApiAllowed.php@@ -10,7 +10,6 @@ class ApiAllowed{public function handle(Request $request, Closure $next): Response{- ray()->clearAll();if (isCloud()) {return $next($request);}diff --git a/app/Jobs/ApplicationDeploymentJob.php b/app/Jobs/ApplicationDeploymentJob.phpindex 9ae383a9fa..c80b4a7db0 100644--- a/app/Jobs/ApplicationDeploymentJob.php+++ b/app/Jobs/ApplicationDeploymentJob.php@@ -208,7 +208,6 @@ class ApplicationDeploymentJob implements ShouldBeEncrypted, ShouldQueue$this->container_name = "{$this->application->settings->custom_internal_name}-pr-{$this->pull_request_id}";}}- ray('New container name: ', $this->container_name)->green();$this->saved_outputs = collect();@@ -298,7 +297,6 @@ class ApplicationDeploymentJob implements ShouldBeEncrypted, ShouldQueueif ($this->pull_request_id !== 0 && $this->application->is_github_based()) {ApplicationPullRequestUpdateJob::dispatch(application: $this->application, preview: $this->preview, deployment_uuid: $this->deployment_uuid, status: ProcessStatus::ERROR);}- ray($e);$this->fail($e);throw $e;} finally {@@ -389,7 +387,6 @@ class ApplicationDeploymentJob implements ShouldBeEncrypted, ShouldQueue} else {$this->dockerImageTag = $this->application->docker_registry_image_tag;}- ray("echo 'Starting deployment of {$this->dockerImage}:{$this->dockerImageTag} to {$this->server->name}.'");$this->application_deployment_queue->addLogEntry("Starting deployment of {$this->dockerImage}:{$this->dockerImageTag} to {$this->server->name}.");$this->generate_image_names();$this->prepare_builder_image();@@ -712,38 +709,26 @@ class ApplicationDeploymentJob implements ShouldBeEncrypted, ShouldQueue{$forceFail = true;if (str($this->application->docker_registry_image_name)->isEmpty()) {- ray('empty docker_registry_image_name');-return;}if ($this->restart_only) {- ray('restart_only');-return;}if ($this->application->build_pack === 'dockerimage') {- ray('dockerimage');-return;}if ($this->use_build_server) {- ray('use_build_server');$forceFail = true;}if ($this->server->isSwarm() && $this->build_pack !== 'dockerimage') {- ray('isSwarm');$forceFail = true;}if ($this->application->additional_servers->count() > 0) {- ray('additional_servers');$forceFail = true;}if ($this->is_this_additional_server) {- ray('this is an additional_servers, no pushy pushy');-return;}- ray('push_to_docker_registry noww: '.$this->production_image_name);try {instant_remote_process(["docker images --format '{{json .}}' {$this->production_image_name}"], $this->server);$this->application_deployment_queue->addLogEntry('----------------------------------------');@@ -775,7 +760,6 @@ class ApplicationDeploymentJob implements ShouldBeEncrypted, ShouldQueueif ($forceFail) {throw new RuntimeException($e->getMessage(), 69420);}- ray($e);}}@@ -1386,8 +1370,6 @@ class ApplicationDeploymentJob implements ShouldBeEncrypted, ShouldQueuereturn;}if ($destination_ids->contains($this->destination->id)) {- ray('Same destination found in additional destinations. Skipping.');-return;}foreach ($destination_ids as $destination_id) {@@ -2449,7 +2431,6 @@ COPY ./nginx.conf /etc/nginx/conf.d/default.conf");if ($this->application->build_pack !== 'dockercompose') {$code = $exception->getCode();- ray($code);if ($code !== 69420) {// 69420 means failed to push the image to the registry, so we don't need to remove the new version as it is the currently running oneif ($this->application->settings->is_consistent_container_name_enabled || str($this->application->settings->custom_internal_name)->isNotEmpty()) {diff --git a/app/Jobs/ApplicationPullRequestUpdateJob.php b/app/Jobs/ApplicationPullRequestUpdateJob.phpindex 6120d1cba8..2eefc4dd23 100755--- a/app/Jobs/ApplicationPullRequestUpdateJob.php+++ b/app/Jobs/ApplicationPullRequestUpdateJob.php@@ -31,8 +31,6 @@ class ApplicationPullRequestUpdateJob implements ShouldBeEncrypted, ShouldQueue{try {if ($this->application->is_public_repository()) {- ray('Public repository. Skipping comment update.');-return;}if ($this->status === ProcessStatus::CLOSED) {@@ -53,16 +51,12 @@ class ApplicationPullRequestUpdateJob implements ShouldBeEncrypted, ShouldQueue$this->body .= '[Open Build Logs]('.$this->build_logs_url.")\n\n\n";$this->body .= 'Last updated at: '.now()->toDateTimeString().' CET';-- ray('Updating comment', $this->body);if ($this->preview->pull_request_issue_comment_id) {$this->update_comment();} else {$this->create_comment();}} catch (\Throwable $e) {- ray($e);-return $e;}}@@ -73,7 +67,6 @@ class ApplicationPullRequestUpdateJob implements ShouldBeEncrypted, ShouldQueue'body' => $this->body,], throwError: false);if (data_get($data, 'message') === 'Not Found') {- ray('Comment not found. Creating new one.');$this->create_comment();}}diff --git a/app/Jobs/CheckResaleLicenseJob.php b/app/Jobs/CheckResaleLicenseJob.phpindex b55ae99676..7479867b63 100644--- a/app/Jobs/CheckResaleLicenseJob.php+++ b/app/Jobs/CheckResaleLicenseJob.php@@ -22,7 +22,6 @@ class CheckResaleLicenseJob implements ShouldBeEncrypted, ShouldQueueCheckResaleLicense::run();} catch (\Throwable $e) {send_internal_notification('CheckResaleLicenseJob failed with: '.$e->getMessage());- ray($e);throw $e;}}diff --git a/app/Jobs/CleanupHelperContainersJob.php b/app/Jobs/CleanupHelperContainersJob.phpindex b8ca8b7ed8..f185ab7812 100644--- a/app/Jobs/CleanupHelperContainersJob.php+++ b/app/Jobs/CleanupHelperContainersJob.php@@ -20,18 +20,15 @@ class CleanupHelperContainersJob implements ShouldBeEncrypted, ShouldBeUnique, Spublic function handle(): void{try {- ray('Cleaning up helper containers on '.$this->server->name);$containers = instant_remote_process(['docker container ps --format \'{{json .}}\' | jq -s \'map(select(.Image | contains("ghcr.io/coollabsio/coolify-helper")))\''], $this->server, false);$containerIds = collect(json_decode($containers))->pluck('ID');if ($containerIds->count() > 0) {foreach ($containerIds as $containerId) {- ray('Removing container '.$containerId);instant_remote_process(['docker container rm -f '.$containerId], $this->server, false);}}} catch (\Throwable $e) {send_internal_notification('CleanupHelperContainersJob failed with error: '.$e->getMessage());- ray($e->getMessage());}}}diff --git a/app/Jobs/CleanupInstanceStuffsJob.php b/app/Jobs/CleanupInstanceStuffsJob.phpindex d9de3f6fe7..acbe823388 100644--- a/app/Jobs/CleanupInstanceStuffsJob.php+++ b/app/Jobs/CleanupInstanceStuffsJob.php@@ -29,13 +29,11 @@ class CleanupInstanceStuffsJob implements ShouldBeEncrypted, ShouldBeUnique, Sho// $this->cleanup_waitlist();} catch (\Throwable $e) {send_internal_notification('CleanupInstanceStuffsJob failed with error: '.$e->getMessage());- ray($e->getMessage());}try {$this->cleanup_invitation_link();} catch (\Throwable $e) {send_internal_notification('CleanupInstanceStuffsJob failed with error: '.$e->getMessage());- ray($e->getMessage());}}diff --git a/app/Jobs/DatabaseBackupJob.php b/app/Jobs/DatabaseBackupJob.phpindex 41f4daa4b0..d38a1570f8 100644--- a/app/Jobs/DatabaseBackupJob.php+++ b/app/Jobs/DatabaseBackupJob.php@@ -92,8 +92,6 @@ class DatabaseBackupJob implements ShouldBeEncrypted, ShouldQueue$status = str(data_get($this->database, 'status'));if (! $status->startsWith('running') && $this->database->id !== 0) {- ray('database not running');-return;}if (data_get($this->backup, 'database_type') === 'App\Models\ServiceDatabase') {@@ -222,7 +220,6 @@ class DatabaseBackupJob implements ShouldBeEncrypted, ShouldQueue// Format: db1:collection1,collection2|db2:collection3,collection4$databasesToBackup = explode('|', $databasesToBackup);$databasesToBackup = array_map('trim', $databasesToBackup);- ray($databasesToBackup);} elseif (str($databaseType)->contains('mysql')) {// Format: db1,db2,db3$databasesToBackup = explode(',', $databasesToBackup);@@ -244,7 +241,6 @@ class DatabaseBackupJob implements ShouldBeEncrypted, ShouldQueue}foreach ($databasesToBackup as $database) {$size = 0;- ray('Backing up '.$database);try {if (str($databaseType)->contains('postgres')) {$this->backup_file = "/pg-dump-$database-".Carbon::now()->timestamp.'.dmp';@@ -377,10 +373,8 @@ class DatabaseBackupJob implements ShouldBeEncrypted, ShouldQueueif ($this->backup_output === '') {$this->backup_output = null;}- ray('Backup done for '.$this->container_name.' at '.$this->server->name.':'.$this->backup_location);} catch (\Throwable $e) {$this->add_to_backup_output($e->getMessage());- ray('Backup failed for '.$this->container_name.' at '.$this->server->name.':'.$this->backup_location.'\n\nError:'.$e->getMessage());throw $e;}}@@ -400,16 +394,13 @@ class DatabaseBackupJob implements ShouldBeEncrypted, ShouldQueue}$commands[] = $backupCommand;- ray($commands);$this->backup_output = instant_remote_process($commands, $this->server);$this->backup_output = trim($this->backup_output);if ($this->backup_output === '') {$this->backup_output = null;}- ray('Backup done for '.$this->container_name.' at '.$this->server->name.':'.$this->backup_location);} catch (\Throwable $e) {$this->add_to_backup_output($e->getMessage());- ray('Backup failed for '.$this->container_name.' at '.$this->server->name.':'.$this->backup_location.'\n\nError:'.$e->getMessage());throw $e;}}@@ -428,10 +419,8 @@ class DatabaseBackupJob implements ShouldBeEncrypted, ShouldQueueif ($this->backup_output === '') {$this->backup_output = null;}- ray('Backup done for '.$this->container_name.' at '.$this->server->name.':'.$this->backup_location);} catch (\Throwable $e) {$this->add_to_backup_output($e->getMessage());- ray('Backup failed for '.$this->container_name.' at '.$this->server->name.':'.$this->backup_location.'\n\nError:'.$e->getMessage());throw $e;}}@@ -445,16 +434,13 @@ class DatabaseBackupJob implements ShouldBeEncrypted, ShouldQueue} else {$commands[] = "docker exec $this->container_name mariadb-dump -u root -p{$this->database->mariadb_root_password} $database > $this->backup_location";}- ray($commands);$this->backup_output = instant_remote_process($commands, $this->server);$this->backup_output = trim($this->backup_output);if ($this->backup_output === '') {$this->backup_output = null;}- ray('Backup done for '.$this->container_name.' at '.$this->server->name.':'.$this->backup_location);} catch (\Throwable $e) {$this->add_to_backup_output($e->getMessage());- ray('Backup failed for '.$this->container_name.' at '.$this->server->name.':'.$this->backup_location.'\n\nError:'.$e->getMessage());throw $e;}}diff --git a/app/Jobs/GithubAppPermissionJob.php b/app/Jobs/GithubAppPermissionJob.phpindex 9c0a2b55b0..d483fe4c2d 100644--- a/app/Jobs/GithubAppPermissionJob.php+++ b/app/Jobs/GithubAppPermissionJob.php@@ -42,7 +42,6 @@ class GithubAppPermissionJob implements ShouldBeEncrypted, ShouldQueue$this->github_app->makeVisible('client_secret')->makeVisible('webhook_secret');} catch (\Throwable $e) {send_internal_notification('GithubAppPermissionJob failed with: '.$e->getMessage());- ray($e->getMessage());throw $e;}}diff --git a/app/Jobs/PullTemplatesFromCDN.php b/app/Jobs/PullTemplatesFromCDN.phpindex 72c9710339..bde5e6c7ae 100644--- a/app/Jobs/PullTemplatesFromCDN.php+++ b/app/Jobs/PullTemplatesFromCDN.php@@ -25,7 +25,6 @@ class PullTemplatesFromCDN implements ShouldBeEncrypted, ShouldQueueif (isDev() || isCloud()) {return;}- ray('PullTemplatesAndVersions service-templates');$response = Http::retry(3, 1000)->get(config('constants.services.official'));if ($response->successful()) {$services = $response->json();@@ -35,7 +34,6 @@ class PullTemplatesFromCDN implements ShouldBeEncrypted, ShouldQueue}} catch (\Throwable $e) {send_internal_notification('PullTemplatesAndVersions failed with: '.$e->getMessage());- ray($e->getMessage());}}}diff --git a/app/Jobs/PullVersionsFromCDN.php b/app/Jobs/PullVersionsFromCDN.phpindex 79ebad7a81..8a0a61fada 100644--- a/app/Jobs/PullVersionsFromCDN.php+++ b/app/Jobs/PullVersionsFromCDN.php@@ -23,7 +23,6 @@ class PullVersionsFromCDN implements ShouldBeEncrypted, ShouldQueue{try {if (! isDev() && ! isCloud()) {- ray('PullTemplatesAndVersions versions.json');$response = Http::retry(3, 1000)->get('https://cdn.coollabs.io/coolify/versions.json');if ($response->successful()) {$versions = $response->json();diff --git a/app/Jobs/PushServerUpdateJob.php b/app/Jobs/PushServerUpdateJob.phpindex 62f0591292..cffdab5c3f 100644--- a/app/Jobs/PushServerUpdateJob.php+++ b/app/Jobs/PushServerUpdateJob.php@@ -129,8 +129,6 @@ class PushServerUpdateJob implements ShouldBeEncrypted, ShouldQueue});});- ray('allServiceApplicationIds', ['allServiceApplicationIds' => $this->allServiceApplicationIds]);-foreach ($this->containers as $container) {$containerStatus = data_get($container, 'state', 'exited');$containerHealth = data_get($container, 'health_status', 'unhealthy');@@ -158,7 +156,6 @@ class PushServerUpdateJob implements ShouldBeEncrypted, ShouldQueue$this->updateApplicationPreviewStatus($applicationId, $containerStatus);}} catch (\Exception $e) {- ray()->error($e);}} elseif ($labels->has('coolify.serviceId')) {$serviceId = $labels->get('coolify.serviceId');@@ -178,7 +175,6 @@ class PushServerUpdateJob implements ShouldBeEncrypted, ShouldQueueif ($name === 'coolify-proxy' && $this->isRunning($containerStatus)) {$this->foundProxy = true;} elseif ($type === 'service' && $this->isRunning($containerStatus)) {- ray("Service: $uuid, $containerStatus");} else {if ($this->allDatabaseUuids->contains($uuid) && $this->isRunning($containerStatus)) {$this->foundDatabaseUuids->push($uuid);@@ -218,7 +214,6 @@ class PushServerUpdateJob implements ShouldBeEncrypted, ShouldQueue}$application->status = $containerStatus;$application->save();- ray('Application updated', ['application_id' => $applicationId, 'status' => $containerStatus]);}private function updateApplicationPreviewStatus(string $applicationId, string $containerStatus)@@ -229,21 +224,17 @@ class PushServerUpdateJob implements ShouldBeEncrypted, ShouldQueue}$application->status = $containerStatus;$application->save();- ray('Application preview updated', ['application_id' => $applicationId, 'status' => $containerStatus]);}private function updateNotFoundApplicationStatus(){$notFoundApplicationIds = $this->allApplicationIds->diff($this->foundApplicationIds);if ($notFoundApplicationIds->isNotEmpty()) {- ray('Not found application ids', ['application_ids' => $notFoundApplicationIds]);$notFoundApplicationIds->each(function ($applicationId) {- ray('Updating application status', ['application_id' => $applicationId, 'status' => 'exited']);$application = Application::find($applicationId);if ($application) {$application->status = 'exited';$application->save();- ray('Application status updated', ['application_id' => $applicationId, 'status' => 'exited']);}});}@@ -253,14 +244,11 @@ class PushServerUpdateJob implements ShouldBeEncrypted, ShouldQueue{$notFoundApplicationPreviewsIds = $this->allApplicationPreviewsIds->diff($this->foundApplicationPreviewsIds);if ($notFoundApplicationPreviewsIds->isNotEmpty()) {- ray('Not found application previews ids', ['application_previews_ids' => $notFoundApplicationPreviewsIds]);$notFoundApplicationPreviewsIds->each(function ($applicationPreviewId) {- ray('Updating application preview status', ['application_preview_id' => $applicationPreviewId, 'status' => 'exited']);$applicationPreview = ApplicationPreview::find($applicationPreviewId);if ($applicationPreview) {$applicationPreview->status = 'exited';$applicationPreview->save();- ray('Application preview status updated', ['application_preview_id' => $applicationPreviewId, 'status' => 'exited']);}});}@@ -294,17 +282,14 @@ class PushServerUpdateJob implements ShouldBeEncrypted, ShouldQueue}$database->status = $containerStatus;$database->save();- ray('Database status updated', ['database_uuid' => $databaseUuid, 'status' => $containerStatus]);if ($this->isRunning($containerStatus) && $tcpProxy) {$tcpProxyContainerFound = $this->containers->filter(function ($value, $key) use ($databaseUuid) {return data_get($value, 'name') === "$databaseUuid-proxy" && data_get($value, 'state') === 'running';})->first();if (! $tcpProxyContainerFound) {- ray('Starting TCP proxy for database', ['database_uuid' => $databaseUuid]);StartDatabaseProxy::dispatch($database);$this->server->team?->notify(new ContainerRestarted("TCP Proxy for {$database->name}", $this->server));} else {- ray('TCP proxy for database found in containers', ['database_uuid' => $databaseUuid]);}}}@@ -313,17 +298,12 @@ class PushServerUpdateJob implements ShouldBeEncrypted, ShouldQueue{$notFoundDatabaseUuids = $this->allDatabaseUuids->diff($this->foundDatabaseUuids);if ($notFoundDatabaseUuids->isNotEmpty()) {- ray('Not found database uuids', ['database_uuids' => $notFoundDatabaseUuids]);$notFoundDatabaseUuids->each(function ($databaseUuid) {- ray('Updating database status', ['database_uuid' => $databaseUuid, 'status' => 'exited']);$database = $this->databases->where('uuid', $databaseUuid)->first();if ($database) {$database->status = 'exited';$database->save();- ray('Database status updated', ['database_uuid' => $databaseUuid, 'status' => 'exited']);- ray('Database is public', ['database_uuid' => $databaseUuid, 'is_public' => $database->is_public]);if ($database->is_public) {- ray('Stopping TCP proxy for database', ['database_uuid' => $databaseUuid]);StopDatabaseProxy::dispatch($database);}}@@ -341,14 +321,11 @@ class PushServerUpdateJob implements ShouldBeEncrypted, ShouldQueue$application = $service->applications()->where('id', $subId)->first();$application->status = $containerStatus;$application->save();- ray('Service application updated', ['service_id' => $serviceId, 'sub_type' => $subType, 'sub_id' => $subId, 'status' => $containerStatus]);} elseif ($subType === 'database') {$database = $service->databases()->where('id', $subId)->first();$database->status = $containerStatus;$database->save();- ray('Service database updated', ['service_id' => $serviceId, 'sub_type' => $subType, 'sub_id' => $subId, 'status' => $containerStatus]);} else {- ray()->warning('Unknown sub type', ['service_id' => $serviceId, 'sub_type' => $subType, 'sub_id' => $subId, 'status' => $containerStatus]);}}@@ -357,26 +334,20 @@ class PushServerUpdateJob implements ShouldBeEncrypted, ShouldQueue$notFoundServiceApplicationIds = $this->allServiceApplicationIds->diff($this->foundServiceApplicationIds);$notFoundServiceDatabaseIds = $this->allServiceDatabaseIds->diff($this->foundServiceDatabaseIds);if ($notFoundServiceApplicationIds->isNotEmpty()) {- ray('Not found service application ids', ['service_application_ids' => $notFoundServiceApplicationIds]);$notFoundServiceApplicationIds->each(function ($serviceApplicationId) {- ray('Updating service application status', ['service_application_id' => $serviceApplicationId, 'status' => 'exited']);$application = ServiceApplication::find($serviceApplicationId);if ($application) {$application->status = 'exited';$application->save();- ray('Service application status updated', ['service_application_id' => $serviceApplicationId, 'status' => 'exited']);}});}if ($notFoundServiceDatabaseIds->isNotEmpty()) {- ray('Not found service database ids', ['service_database_ids' => $notFoundServiceDatabaseIds]);$notFoundServiceDatabaseIds->each(function ($serviceDatabaseId) {- ray('Updating service database status', ['service_database_id' => $serviceDatabaseId, 'status' => 'exited']);$database = ServiceDatabase::find($serviceDatabaseId);if ($database) {$database->status = 'exited';$database->save();- ray('Service database status updated', ['service_database_id' => $serviceDatabaseId, 'status' => 'exited']);}});}@@ -385,7 +356,6 @@ class PushServerUpdateJob implements ShouldBeEncrypted, ShouldQueueprivate function updateAdditionalServersStatus(){$this->allApplicationsWithAdditionalServers->each(function ($application) {- ray('Updating additional servers status for application', ['application_id' => $application->id]);ComplexStatusCheck::run($application);});}diff --git a/app/Jobs/SendConfirmationForWaitlistJob.php b/app/Jobs/SendConfirmationForWaitlistJob.phpindex 070598e712..7af8205fc3 100755--- a/app/Jobs/SendConfirmationForWaitlistJob.php+++ b/app/Jobs/SendConfirmationForWaitlistJob.php@@ -31,7 +31,6 @@ class SendConfirmationForWaitlistJob implements ShouldBeEncrypted, ShouldQueuesend_user_an_email($mail, $this->email);} catch (\Throwable $e) {send_internal_notification("SendConfirmationForWaitlistJob failed for {$this->email} with error: ".$e->getMessage());- ray($e->getMessage());throw $e;}}diff --git a/app/Jobs/ServerCheckJob.php b/app/Jobs/ServerCheckJob.phpindex 5ac98e9547..727149181d 100644--- a/app/Jobs/ServerCheckJob.php+++ b/app/Jobs/ServerCheckJob.php@@ -85,7 +85,6 @@ class ServerCheckJob implements ShouldBeEncrypted, ShouldQueue$this->server->team?->notify(new ContainerRestarted('coolify-proxy', $this->server));}} catch (\Throwable $e) {- ray($e);}} else {$this->server->proxy->status = data_get($foundProxyContainer, 'State.Status');@@ -97,8 +96,6 @@ class ServerCheckJob implements ShouldBeEncrypted, ShouldQueue}} catch (\Throwable $e) {- ray($e->getMessage());-return handleError($e);}diff --git a/app/Jobs/ServerLimitCheckJob.php b/app/Jobs/ServerLimitCheckJob.phpindex 1f09d5a3b5..084b6bf81e 100644--- a/app/Jobs/ServerLimitCheckJob.php+++ b/app/Jobs/ServerLimitCheckJob.php@@ -32,9 +32,7 @@ class ServerLimitCheckJob implements ShouldBeEncrypted, ShouldQueue$servers_count = $servers->count();$limit = data_get($this->team->limits, 'serverLimit', 2);$number_of_servers_to_disable = $servers_count - $limit;- ray('ServerLimitCheckJob', $this->team->uuid, $servers_count, $limit, $number_of_servers_to_disable);if ($number_of_servers_to_disable > 0) {- ray('Disabling servers');$servers = $servers->sortbyDesc('created_at');$servers_to_disable = $servers->take($number_of_servers_to_disable);$servers_to_disable->each(function ($server) {@@ -51,7 +49,6 @@ class ServerLimitCheckJob implements ShouldBeEncrypted, ShouldQueue}} catch (\Throwable $e) {send_internal_notification('ServerLimitCheckJob failed with: '.$e->getMessage());- ray($e->getMessage());return handleError($e);}diff --git a/app/Jobs/SubscriptionInvoiceFailedJob.php b/app/Jobs/SubscriptionInvoiceFailedJob.phpindex b4ef7baa0d..aabeecef5c 100755--- a/app/Jobs/SubscriptionInvoiceFailedJob.php+++ b/app/Jobs/SubscriptionInvoiceFailedJob.php@@ -27,14 +27,12 @@ class SubscriptionInvoiceFailedJob implements ShouldBeEncrypted, ShouldQueue]);$mail->subject('Your last payment was failed for Coolify Cloud.');$this->team->members()->each(function ($member) use ($mail) {- ray($member);if ($member->isAdmin()) {send_user_an_email($mail, $member->email);}});} catch (\Throwable $e) {send_internal_notification('SubscriptionInvoiceFailedJob failed with: '.$e->getMessage());- ray($e->getMessage());throw $e;}}diff --git a/app/Jobs/SubscriptionTrialEndedJob.php b/app/Jobs/SubscriptionTrialEndedJob.phpindex 8635b439ca..88a5e06be5 100755--- a/app/Jobs/SubscriptionTrialEndedJob.php+++ b/app/Jobs/SubscriptionTrialEndedJob.php@@ -30,14 +30,12 @@ class SubscriptionTrialEndedJob implements ShouldBeEncrypted, ShouldQueue]);$this->team->members()->each(function ($member) use ($mail) {if ($member->isAdmin()) {- ray('Sending trial ended email to '.$member->email);send_user_an_email($mail, $member->email);send_internal_notification('Trial reminder email sent to '.$member->email);}});} catch (\Throwable $e) {send_internal_notification('SubscriptionTrialEndsSoonJob failed with: '.$e->getMessage());- ray($e->getMessage());throw $e;}}diff --git a/app/Jobs/SubscriptionTrialEndsSoonJob.php b/app/Jobs/SubscriptionTrialEndsSoonJob.phpindex 244624749c..2a76a1097e 100755--- a/app/Jobs/SubscriptionTrialEndsSoonJob.php+++ b/app/Jobs/SubscriptionTrialEndsSoonJob.php@@ -30,14 +30,12 @@ class SubscriptionTrialEndsSoonJob implements ShouldBeEncrypted, ShouldQueue]);$this->team->members()->each(function ($member) use ($mail) {if ($member->isAdmin()) {- ray('Sending trial ending email to '.$member->email);send_user_an_email($mail, $member->email);send_internal_notification('Trial reminder email sent to '.$member->email);}});} catch (\Throwable $e) {send_internal_notification('SubscriptionTrialEndsSoonJob failed with: '.$e->getMessage());- ray($e->getMessage());throw $e;}}diff --git a/app/Listeners/MaintenanceModeDisabledNotification.php b/app/Listeners/MaintenanceModeDisabledNotification.phpindex c7cd1bcded..6c3ab83d8f 100644--- a/app/Listeners/MaintenanceModeDisabledNotification.php+++ b/app/Listeners/MaintenanceModeDisabledNotification.php@@ -13,7 +13,6 @@ class MaintenanceModeDisabledNotificationpublic function handle(EventsMaintenanceModeDisabled $event): void{- ray('Maintenance mode disabled!');$files = Storage::disk('webhooks-during-maintenance')->files();$files = collect($files);$files = $files->sort();@@ -41,7 +40,6 @@ class MaintenanceModeDisabledNotification$instance = new $class;$instance->$method($request);} catch (\Throwable $th) {- ray($th);} finally {Storage::disk('webhooks-during-maintenance')->delete($file);}diff --git a/app/Listeners/MaintenanceModeEnabledNotification.php b/app/Listeners/MaintenanceModeEnabledNotification.phpindex b2cd8c738a..5aab248ea8 100644--- a/app/Listeners/MaintenanceModeEnabledNotification.php+++ b/app/Listeners/MaintenanceModeEnabledNotification.php@@ -17,8 +17,5 @@ class MaintenanceModeEnabledNotification/*** Handle the event.*/- public function handle(EventsMaintenanceModeEnabled $event): void- {- ray('Maintenance mode enabled!');- }+ public function handle(EventsMaintenanceModeEnabled $event): void {}}diff --git a/app/Livewire/NewActivityMonitor.php b/app/Livewire/NewActivityMonitor.phpindex 10dbb9ce7d..a9334e7108 100644--- a/app/Livewire/NewActivityMonitor.php+++ b/app/Livewire/NewActivityMonitor.php@@ -68,7 +68,6 @@ class NewActivityMonitor extends Component} else {$this->dispatch($this->eventToDispatch);}- ray('Dispatched event: '.$this->eventToDispatch.' with data: '.$this->eventData);}}}diff --git a/app/Livewire/Notifications/Discord.php b/app/Livewire/Notifications/Discord.phpindex 49666dabd0..01ba8ffe17 100644--- a/app/Livewire/Notifications/Discord.php+++ b/app/Livewire/Notifications/Discord.php@@ -35,7 +35,6 @@ class Discord extends Componenttry {$this->submit();} catch (\Throwable $e) {- ray($e->getMessage());$this->team->discord_enabled = false;$this->validate();}diff --git a/app/Livewire/Notifications/Telegram.php b/app/Livewire/Notifications/Telegram.phpindex a035df71c3..09a0f1c3cd 100644--- a/app/Livewire/Notifications/Telegram.php+++ b/app/Livewire/Notifications/Telegram.php@@ -42,7 +42,6 @@ class Telegram extends Componenttry {$this->submit();} catch (\Throwable $e) {- ray($e->getMessage());$this->team->telegram_enabled = false;$this->validate();}diff --git a/app/Livewire/Project/Application/DeploymentNavbar.php b/app/Livewire/Project/Application/DeploymentNavbar.phpindex 5fccce792a..6a6fa24823 100644--- a/app/Livewire/Project/Application/DeploymentNavbar.php+++ b/app/Livewire/Project/Application/DeploymentNavbar.php@@ -46,8 +46,6 @@ class DeploymentNavbar extends Componenttry {force_start_deployment($this->application_deployment_queue);} catch (\Throwable $e) {- ray($e);-return handleError($e, $this);}}@@ -81,8 +79,6 @@ class DeploymentNavbar extends Component}instant_remote_process([$kill_command], $server);} catch (\Throwable $e) {- ray($e);-return handleError($e, $this);} finally {$this->application_deployment_queue->update([diff --git a/app/Livewire/Project/New/DockerImage.php b/app/Livewire/Project/New/DockerImage.phpindex d3f5b5261e..417fb2ea02 100644--- a/app/Livewire/Project/New/DockerImage.php+++ b/app/Livewire/Project/New/DockerImage.php@@ -46,7 +46,6 @@ class DockerImage extends Component$project = Project::where('uuid', $this->parameters['project_uuid'])->first();$environment = $project->load(['environments'])->environments->where('name', $this->parameters['environment_name'])->first();- ray($image, $tag);$application = Application::create(['name' => 'docker-image-'.new Cuid2,'repository_project_id' => 0,diff --git a/app/Livewire/Project/New/GithubPrivateRepository.php b/app/Livewire/Project/New/GithubPrivateRepository.phpindex fbeb5601ff..2f4f5a25c5 100644--- a/app/Livewire/Project/New/GithubPrivateRepository.php+++ b/app/Livewire/Project/New/GithubPrivateRepository.php@@ -153,7 +153,6 @@ class GithubPrivateRepository extends Componentprotected function loadBranchByPage(){- ray('Loading page '.$this->page);$response = Http::withToken($this->token)->get("{$this->github_app->api_url}/repos/{$this->selected_repository_owner}/{$this->selected_repository_repo}/branches?per_page=100&page={$this->page}");$json = $response->json();if ($response->status() !== 200) {diff --git a/app/Livewire/Project/Service/Database.php b/app/Livewire/Project/Service/Database.phpindex 9804fb5ba8..f95075de63 100644--- a/app/Livewire/Project/Service/Database.php+++ b/app/Livewire/Project/Service/Database.php@@ -96,7 +96,6 @@ class Database extends ComponentupdateCompose($this->database);$this->dispatch('success', 'Database saved.');} catch (\Throwable $e) {- ray($e);} finally {$this->dispatch('generateDockerCompose');}diff --git a/app/Livewire/Project/Service/Navbar.php b/app/Livewire/Project/Service/Navbar.phpindex 7db6d98343..2c5198387b 100644--- a/app/Livewire/Project/Service/Navbar.php+++ b/app/Livewire/Project/Service/Navbar.php@@ -27,7 +27,6 @@ class Navbar extends Componentpublic function mount(){if (str($this->service->status())->contains('running') && is_null($this->service->config_hash)) {- ray('isConfigurationChanged init');$this->service->isConfigurationChanged(true);$this->dispatch('configurationChanged');}diff --git a/app/Livewire/Project/Shared/Logs.php b/app/Livewire/Project/Shared/Logs.phpindex 5af0a6a503..e2b57aab3c 100644--- a/app/Livewire/Project/Shared/Logs.php+++ b/app/Livewire/Project/Shared/Logs.php@@ -109,7 +109,6 @@ class Logs extends Component$this->containers = $this->containers->filter(function ($container) {return str_contains($container, $this->query['pull_request_id']);});- ray($this->containers);}diff --git a/app/Livewire/Settings/License.php b/app/Livewire/Settings/License.phpindex 8cb7aad8f6..79f8269f3f 100644--- a/app/Livewire/Settings/License.php+++ b/app/Livewire/Settings/License.php@@ -50,7 +50,6 @@ class License extends Component$this->dispatch('reloadWindow');} catch (\Throwable $e) {session()->flash('error', 'Something went wrong. Please contact support. <br>Error: '.$e->getMessage());- ray($e->getMessage());return redirect()->route('settings.license');}diff --git a/app/Livewire/Team/AdminView.php b/app/Livewire/Team/AdminView.phpindex 700c30f0a8..c9dabcb5c7 100644--- a/app/Livewire/Team/AdminView.php+++ b/app/Livewire/Team/AdminView.php@@ -59,20 +59,16 @@ class AdminView extends Componentforeach ($servers as $server) {$resources = $server->definedResources();foreach ($resources as $resource) {- ray('Deleting resource: '.$resource->name);$resource->forceDelete();}- ray('Deleting server: '.$server->name);$server->forceDelete();}$projects = $team->projects;foreach ($projects as $project) {- ray('Deleting project: '.$project->name);$project->forceDelete();}$team->members()->detach($user->id);- ray('Deleting team: '.$team->name);$team->delete();}@@ -91,29 +87,23 @@ class AdminView extends Component$user = User::find($id);$teams = $user->teams;foreach ($teams as $team) {- ray($team->name);$user_alone_in_team = $team->members->count() === 1;if ($team->id === 0) {if ($user_alone_in_team) {- ray('user is alone in the root team, do nothing');-return $this->dispatch('error', 'User is alone in the root team, cannot delete');}}if ($user_alone_in_team) {- ray('user is alone in the team');$this->finalizeDeletion($user, $team);continue;}- ray('user is not alone in the team');if ($user->isOwner()) {$found_other_owner_or_admin = $team->members->filter(function ($member) {return $member->pivot->role === 'owner' || $member->pivot->role === 'admin';})->where('id', '!=', $user->id)->first();if ($found_other_owner_or_admin) {- ray('found other owner or admin');$team->members()->detach($user->id);continue;@@ -122,24 +112,19 @@ class AdminView extends Componentreturn $member->pivot->role === 'member';})->first();if ($found_other_member_who_is_not_owner) {- ray('found other member who is not owner');$found_other_member_who_is_not_owner->pivot->role = 'owner';$found_other_member_who_is_not_owner->pivot->save();$team->members()->detach($user->id);} else {- // This should never happen as if the user is the only member in the team, the team should be deleted already.- ray('found no other member who is not owner');$this->finalizeDeletion($user, $team);}continue;}} else {- ray('user is not owner');$team->members()->detach($user->id);}}- ray('Deleting user: '.$user->name);$user->delete();$this->getUsers();}diff --git a/app/Livewire/VerifyEmail.php b/app/Livewire/VerifyEmail.phpindex d1f79c835b..9d1fdab987 100644--- a/app/Livewire/VerifyEmail.php+++ b/app/Livewire/VerifyEmail.php@@ -17,8 +17,6 @@ class VerifyEmail extends Component$this->dispatch('success', 'Email verification link sent!');} catch (\Exception $e) {- ray($e);-return handleError($e, $this);}}diff --git a/app/Models/Application.php b/app/Models/Application.phpindex 3fae7153b2..62a4318ade 100644--- a/app/Models/Application.php+++ b/app/Models/Application.php@@ -221,7 +221,6 @@ class Application extends BaseModel{if ($this->build_pack === 'dockercompose') {$server = data_get($this, 'destination.server');- ray('Deleting volumes');instant_remote_process(["cd {$this->dirOnServer()} && docker compose down -v"], $server, false);} else {if ($persistentStorages->count() === 0) {@@ -1246,13 +1245,11 @@ class Application extends BaseModelreturn;}if (base64_encode(base64_decode($customLabels, true)) !== $customLabels) {- ray('custom_labels is not base64 encoded');$this->custom_labels = str($customLabels)->replace(',', "\n");$this->custom_labels = base64_encode($customLabels);}$customLabels = base64_decode($this->custom_labels);if (mb_detect_encoding($customLabels, 'ASCII', true) === false) {- ray('custom_labels contains non-ascii characters');$customLabels = str(implode('|coolify|', generateLabelsApplication($this, $preview)))->replace('|coolify|', "\n");}$this->custom_labels = base64_encode($customLabels);@@ -1478,7 +1475,7 @@ class Application extends BaseModelreturn $config;}-+public function setConfig($config){$validator = Validator::make(['config' => $config], [diff --git a/app/Models/Environment.php b/app/Models/Environment.phpindex c892d7ba17..d0bb5d2a64 100644--- a/app/Models/Environment.php+++ b/app/Models/Environment.php@@ -27,7 +27,6 @@ class Environment extends Modelstatic::deleting(function ($environment) {$shared_variables = $environment->environment_variables();foreach ($shared_variables as $shared_variable) {- ray('Deleting environment shared variable: '.$shared_variable->name);$shared_variable->delete();}diff --git a/app/Models/Project.php b/app/Models/Project.phpindex 5a9dd964a5..3a09b0b8fb 100644--- a/app/Models/Project.php+++ b/app/Models/Project.php@@ -47,7 +47,6 @@ class Project extends BaseModel$project->settings()->delete();$shared_variables = $project->environment_variables();foreach ($shared_variables as $shared_variable) {- ray('Deleting project shared variable: '.$shared_variable->name);$shared_variable->delete();}});diff --git a/app/Models/Service.php b/app/Models/Service.phpindex 0af1adf220..c4f4c2d3c4 100644--- a/app/Models/Service.php+++ b/app/Models/Service.php@@ -366,7 +366,6 @@ class Service extends BaseModel]);}$password = $this->environment_variables()->where('key', 'SERVICE_PASSWORD_LANGFUSE')->first();- ray('password', $password);if ($password) {$data = $data->merge(['Admin Password' => [@@ -1108,7 +1107,6 @@ class Service extends BaseModelforeach ($fields as $field) {$key = data_get($field, 'key');$value = data_get($field, 'value');- ray($key, $value);$found = $this->environment_variables()->where('key', $key)->first();if ($found) {$found->value = $value;diff --git a/app/Models/StandalonePostgresql.php b/app/Models/StandalonePostgresql.phpindex ccab7d6586..3dd13b6331 100644--- a/app/Models/StandalonePostgresql.php+++ b/app/Models/StandalonePostgresql.php@@ -71,7 +71,6 @@ class StandalonePostgresql extends BaseModel}$server = data_get($this, 'destination.server');foreach ($persistentStorages as $storage) {- ray('Deleting volume: '.$storage->name);instant_remote_process(["docker volume rm -f $storage->name"], $server, false);}}diff --git a/app/Models/Team.php b/app/Models/Team.phpindex c5e46f1652..49b019725c 100644--- a/app/Models/Team.php+++ b/app/Models/Team.php@@ -93,27 +93,22 @@ class Team extends Model implements SendsDiscord, SendsEmailstatic::deleting(function ($team) {$keys = $team->privateKeys;foreach ($keys as $key) {- ray('Deleting key: '.$key->name);$key->delete();}$sources = $team->sources();foreach ($sources as $source) {- ray('Deleting source: '.$source->name);$source->delete();}$tags = Tag::whereTeamId($team->id)->get();foreach ($tags as $tag) {- ray('Deleting tag: '.$tag->name);$tag->delete();}$shared_variables = $team->environment_variables();foreach ($shared_variables as $shared_variable) {- ray('Deleting team shared variable: '.$shared_variable->name);$shared_variable->delete();}$s3s = $team->s3s;foreach ($s3s as $s3) {- ray('Deleting s3: '.$s3->name);$s3->delete();}});diff --git a/app/Notifications/Channels/EmailChannel.php b/app/Notifications/Channels/EmailChannel.phpindex 413d3de536..af9af978d0 100644--- a/app/Notifications/Channels/EmailChannel.php+++ b/app/Notifications/Channels/EmailChannel.php@@ -32,7 +32,6 @@ class EmailChannelif ($error === 'No email settings found.') {throw $e;}- ray($e->getMessage());$message = "EmailChannel error: {$e->getMessage()}. Failed to send email to:";if (isset($recipients)) {$message .= implode(', ', $recipients);diff --git a/app/Notifications/Database/BackupSuccess.php b/app/Notifications/Database/BackupSuccess.phpindex 4bd6b97b82..5128c8ed66 100644--- a/app/Notifications/Database/BackupSuccess.php+++ b/app/Notifications/Database/BackupSuccess.php@@ -61,7 +61,6 @@ class BackupSuccess extends Notification implements ShouldQueuepublic function toTelegram(): array{$message = "Coolify: Database backup for {$this->name} (db:{$this->database_name}) with frequency of {$this->frequency} was successful.";- ray($message);return ['message' => $message,diff --git a/database/seeders/PopulateSshKeysDirectorySeeder.php b/database/seeders/PopulateSshKeysDirectorySeeder.phpindex e2543ee02e..d528179c0e 100644--- a/database/seeders/PopulateSshKeysDirectorySeeder.php+++ b/database/seeders/PopulateSshKeysDirectorySeeder.php@@ -33,7 +33,6 @@ class PopulateSshKeysDirectorySeeder extends Seeder}} catch (\Throwable $e) {echo "Error: {$e->getMessage()}\n";- ray($e->getMessage());}}}diff --git a/routes/web.php b/routes/web.phpindex 85a2421b87..642131a92b 100644--- a/routes/web.php+++ b/routes/web.php@@ -245,7 +245,6 @@ Route::middleware(['auth'])->group(function () {Route::post('/upload/backup/{databaseUuid}', [UploadController::class, 'upload'])->name('upload.backup');Route::get('/download/backup/{executionId}', function () {try {- ray()->clearAll();$team = auth()->user()->currentTeam();if (is_null($team)) {return response()->json(['message' => 'Team not found.'], 404);diff --git a/tests/Feature/DockerComposeParseTest.php b/tests/Feature/DockerComposeParseTest.phpindex daaa8b2f1d..8810280dcc 100644--- a/tests/Feature/DockerComposeParseTest.php+++ b/tests/Feature/DockerComposeParseTest.php@@ -172,9 +172,6 @@ afterEach(function () {test('ServiceComposeParseNew', function () {$output = newParser($this->service);$this->service->saveComposeConfigs();- // ray('New parser');- // ray($output->toArray());- ray($this->service->environment_variables->pluck('value', 'key')->toArray());expect($output)->toBeInstanceOf(Collection::class);});