diff --git a/app/Livewire/Project/Shared/ExecuteContainerCommand.php b/app/Livewire/Project/Shared/ExecuteContainerCommand.php index 3687669a9..a33716e72 100644 --- a/app/Livewire/Project/Shared/ExecuteContainerCommand.php +++ b/app/Livewire/Project/Shared/ExecuteContainerCommand.php @@ -107,6 +107,9 @@ public function runCommand() { $this->validate(); try { + if ($this->server->isForceDisabled()) { + throw new \RuntimeException('Server is disabled.'); + } // Wrap command to prevent escaped execution in the host. $cmd = 'sh -c "if [ -f ~/.profile ]; then . ~/.profile; fi; ' . str_replace('"', '\"', $this->command) . '"'; if (!empty($this->workDir)) { diff --git a/config/sentry.php b/config/sentry.php index 40a4c9906..96c7207e0 100644 --- a/config/sentry.php +++ b/config/sentry.php @@ -7,7 +7,7 @@ // The release version of your application // Example with dynamic git hash: trim(exec('git --git-dir ' . base_path('.git') . ' log --pretty="%h" -n1 HEAD')) - 'release' => '4.0.0-beta.225', + 'release' => '4.0.0-beta.226', // When left empty or `null` the Laravel environment will be used 'environment' => config('app.env'), diff --git a/config/version.php b/config/version.php index c3f92910d..b0f6d7453 100644 --- a/config/version.php +++ b/config/version.php @@ -1,3 +1,3 @@