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 (cloud): cloud instance should get latest servics on update (all servers)
Andras Bacsai869f0878c2a2
diff --git a/app/Console/Commands/Init.php b/app/Console/Commands/Init.phpindex f5d5a892ed..241fa777b8 100644--- a/app/Console/Commands/Init.php+++ b/app/Console/Commands/Init.php@@ -13,6 +13,7 @@ use App\Models\ScheduledDatabaseBackup;use App\Models\Server;use App\Models\StandalonePostgresql;use Illuminate\Console\Command;+use Illuminate\Support\Facades\File;use Illuminate\Support\Facades\Http;class Init extends Command@@ -81,6 +82,13 @@ class Init extends Command$settings->update(['is_auto_update_enabled' => false]);}}+ if (isCloud()) {+ $response = Http::retry(3, 1000)->get(config('constants.services.official'));+ if ($response->successful()) {+ $services = $response->json();+ File::put(base_path('templates/service-templates.json'), json_encode($services));+ }+ }return;}