Skip to content

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.

fix: Disable Sentinel temporarily for non-dev environments

Andras Bacsai96ea755a53bd
diff --git a/app/Actions/Server/StartSentinel.php b/app/Actions/Server/StartSentinel.php
index ed93b6c605..e2af0c3bac 100644
--- a/app/Actions/Server/StartSentinel.php
+++ b/app/Actions/Server/StartSentinel.php
@@ -9,10 +9,12 @@ class StartSentinel
{
use AsAction;
- public function handle(Server $server, bool $restart = false)
+ public function handle(Server $server, bool $restart = false, bool $is_dev = false)
{
// TODO: Sentinel is not available in this version (soon).
- return;
+ if (! $is_dev) {
+ return;
+ }
$version = get_latest_sentinel_version();
if ($server->isSwarm() || $server->isBuildServer()) {
return;