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: add experimental flag
Andras Bacsai0c34e81b2bff
diff --git a/app/Actions/Server/StartSentinel.php b/app/Actions/Server/StartSentinel.phpindex e2af0c3bac..ad5d4cdb2b 100644--- a/app/Actions/Server/StartSentinel.php+++ b/app/Actions/Server/StartSentinel.php@@ -9,10 +9,10 @@ class StartSentinel{use AsAction;- public function handle(Server $server, bool $restart = false, bool $is_dev = false)+ public function handle(Server $server, bool $restart = false){// TODO: Sentinel is not available in this version (soon).- if (! $is_dev) {+ if (! isExperimentalEnabled()) {return;}$version = get_latest_sentinel_version();diff --git a/bootstrap/helpers/shared.php b/bootstrap/helpers/shared.phpindex cd0eb709a8..99b7b4c6f5 100644--- a/bootstrap/helpers/shared.php+++ b/bootstrap/helpers/shared.php@@ -362,6 +362,10 @@ function isCloud(): boolreturn ! config('coolify.self_hosted');}+function isExperimentalEnabled(): bool+{+ return config('coolify.is_experimental_enabled');+}function translate_cron_expression($expression_to_validate): string{if (isset(VALID_CRON_STRINGS[$expression_to_validate])) {diff --git a/config/coolify.php b/config/coolify.phpindex f9878fff7b..0a93d86ea9 100644--- a/config/coolify.php+++ b/config/coolify.php@@ -13,4 +13,5 @@ return ['helper_image' => env('HELPER_IMAGE', 'ghcr.io/coollabsio/coolify-helper'),'is_horizon_enabled' => env('HORIZON_ENABLED', true),'is_scheduler_enabled' => env('SCHEDULER_ENABLED', true),+ 'is_experimental_enabled' => env('EXPERIMENTAL_ENABLED', false),];diff --git a/resources/views/livewire/server/form.blade.php b/resources/views/livewire/server/form.blade.phpindex bfcd42d90c..f3293ea0b7 100644--- a/resources/views/livewire/server/form.blade.php+++ b/resources/views/livewire/server/form.blade.php@@ -159,7 +159,7 @@</div></div>@if (!$server->isSwarm() && !$server->isBuildServer())- @if (isDev())+ @if (isExperimentalEnabled())<div class="flex gap-2 items-center pt-4 pb-2"><h3>Sentinel</h3>@if ($server->isSentinelEnabled())@@ -181,7 +181,7 @@<h3>Sentinel</h3><div>Sentinel is not available in this version (soon).</div>@endif- @if (isDev())+ @if (isExperimentalEnabled())<div class="flex flex-col gap-2"><div class="w-64"><x-forms.checkbox wire:model.live="server.settings.is_sentinel_enabled"