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: always start proxy if not NONE is selected

Andras Bacsai59c5b22e6c5c
diff --git a/app/Models/Server.php b/app/Models/Server.php
index fa8fdbe397..07f975c48c 100644
--- a/app/Models/Server.php
+++ b/app/Models/Server.php
@@ -193,23 +193,24 @@ class Server extends BaseModel
}
public function isProxyShouldRun()
{
- $shouldRun = false;
if ($this->proxyType() === ProxyTypes::NONE->value) {
return false;
}
- foreach ($this->applications() as $application) {
- if (data_get($application, 'fqdn')) {
- $shouldRun = true;
- break;
- }
- }
- if ($this->id === 0) {
- $settings = InstanceSettings::get();
- if (data_get($settings, 'fqdn')) {
- $shouldRun = true;
- }
- }
- return $shouldRun;
+ // foreach ($this->applications() as $application) {
+ // if (data_get($application, 'fqdn')) {
+ // $shouldRun = true;
+ // break;
+ // }
+ // }
+ // ray($this->services()->get());
+
+ // if ($this->id === 0) {
+ // $settings = InstanceSettings::get();
+ // if (data_get($settings, 'fqdn')) {
+ // $shouldRun = true;
+ // }
+ // }
+ return true;
}
public function isFunctional()
{