diff --git a/app/Actions/Server/StartSentinel.php b/app/Actions/Server/StartSentinel.php index e2af0c3ba..ad5d4cdb2 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.php index cd0eb709a..99b7b4c6f 100644 --- a/bootstrap/helpers/shared.php +++ b/bootstrap/helpers/shared.php @@ -362,6 +362,10 @@ function isCloud(): bool return ! 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.php index f9878fff7..0a93d86ea 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.php index bfcd42d90..f3293ea0b 100644 --- a/resources/views/livewire/server/form.blade.php +++ b/resources/views/livewire/server/form.blade.php @@ -159,7 +159,7 @@ @if (!$server->isSwarm() && !$server->isBuildServer()) - @if (isDev()) + @if (isExperimentalEnabled())