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
cleanups
Andras Bacsaif1587d330220
diff --git a/app/Livewire/Server/Destinations.php b/app/Livewire/Server/Destinations.phpindex c10958bd17..dbab6e03f0 100644--- a/app/Livewire/Server/Destinations.php+++ b/app/Livewire/Server/Destinations.php@@ -19,7 +19,6 @@ class Destinations extends Componenttry {$this->networks = collect();$this->server = Server::ownedByCurrentTeam()->whereUuid($server_uuid)->firstOrFail();- loggy($this->server);} catch (\Throwable $e) {return handleError($e, $this);}diff --git a/app/Models/Server.php b/app/Models/Server.phpindex 55a4742c0b..0fcfd89ab9 100644--- a/app/Models/Server.php+++ b/app/Models/Server.php@@ -1229,7 +1229,7 @@ $schema://$host {return str($this->ip)->contains(':');}- public function restartSentinel(bool $async = true): void+ public function restartSentinel(bool $async = true){try {if ($async) {@@ -1238,7 +1238,7 @@ $schema://$host {StartSentinel::run($this, true);}} catch (\Throwable $e) {- loggy('Error restarting Sentinel: '.$e->getMessage());+ return handleError($e, $this);}}diff --git a/app/Models/ServerSetting.php b/app/Models/ServerSetting.phpindex bca16536e4..e72c8c444c 100644--- a/app/Models/ServerSetting.php+++ b/app/Models/ServerSetting.php@@ -4,6 +4,7 @@ namespace App\Models;use Illuminate\Database\Eloquent\Casts\Attribute;use Illuminate\Database\Eloquent\Model;+use Illuminate\Support\Facades\Log;use OpenApi\Attributes as OA;#[OA\Schema(@@ -69,7 +70,7 @@ class ServerSetting extends Model$setting->generateSentinelUrl(save: false);}} catch (\Throwable $e) {- loggy('Error creating server setting: '.$e->getMessage());+ Log::error('Error creating server setting: '.$e->getMessage());}});static::updated(function ($settings) {diff --git a/database/migrations/2024_06_25_184323_update_db.php b/database/migrations/2024_06_25_184323_update_db.phpindex 8f9405b86b..d9cddb15f9 100644--- a/database/migrations/2024_06_25_184323_update_db.php+++ b/database/migrations/2024_06_25_184323_update_db.php@@ -5,6 +5,7 @@ use App\Models\Server;use Illuminate\Database\Migrations\Migration;use Illuminate\Database\Schema\Blueprint;use Illuminate\Support\Facades\DB;+use Illuminate\Support\Facades\Log;use Illuminate\Support\Facades\Schema;use Visus\Cuid2\Cuid2;@@ -52,7 +53,7 @@ return new class extends MigrationDB::table('server_settings')->update(['metrics_history_days' => 7]);} catch (\Exception $e) {- loggy($e);+ Log::error('Error updating db: '.$e->getMessage());}}diff --git a/database/seeders/SentinelSeeder.php b/database/seeders/SentinelSeeder.phpindex 117ba67826..d61c2f55db 100644--- a/database/seeders/SentinelSeeder.php+++ b/database/seeders/SentinelSeeder.php@@ -4,6 +4,7 @@ namespace Database\Seeders;use App\Models\Server;use Illuminate\Database\Seeder;+use Illuminate\Support\Facades\Log;class SentinelSeeder extends Seeder{@@ -23,7 +24,7 @@ class SentinelSeeder extends Seeder}}} catch (\Throwable $e) {- loggy("Error: {$e->getMessage()}\n");+ Log::error('Error seeding sentinel: '.$e->getMessage());}}});