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
chore: Update docker cleanup schedule to run daily at midnight
Andras Bacsaiaa586a56777b
diff --git a/database/migrations/2024_09_07_185402_change_cleanup_schedule.php b/database/migrations/2024_09_07_185402_change_cleanup_schedule.phpindex e2c24761c7..ea8861f9b5 100644--- a/database/migrations/2024_09_07_185402_change_cleanup_schedule.php+++ b/database/migrations/2024_09_07_185402_change_cleanup_schedule.php@@ -2,6 +2,8 @@use App\Models\ServerSetting;use Illuminate\Database\Migrations\Migration;+use Illuminate\Database\Schema\Blueprint;+use Illuminate\Support\Facades\Schema;return new class extends Migration{@@ -10,6 +12,10 @@ return new class extends Migration*/public function up(): void{+ Schema::table('server_settings', function (Blueprint $table) {+ $table->string('docker_cleanup_frequency')->default('0 0 * * *')->change();+ });+$serverSettings = ServerSetting::all();foreach ($serverSettings as $serverSetting) {if ($serverSetting->force_docker_cleanup && $serverSetting->docker_cleanup_frequency === '*/10 * * * *') {@@ -22,5 +28,10 @@ return new class extends Migration/*** Reverse the migrations.*/- public function down(): void {}+ public function down(): void+ {+ Schema::table('server_settings', function (Blueprint $table) {+ $table->string('docker_cleanup_frequency')->default('*/10 * * * *')->change();+ });+ }};