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
Refactor Server.php to remove unnecessary coolify.yaml from cloud hosted servers
Andras Bacsai3f9833117e9d
diff --git a/app/Models/Server.php b/app/Models/Server.phpindex 8f66f44e73..a265af729a 100644--- a/app/Models/Server.php+++ b/app/Models/Server.php@@ -240,7 +240,7 @@ respond 404$dynamic_config_path = $this->proxyPath() . "/dynamic";if ($this->proxyType() === 'TRAEFIK_V2') {$file = "$dynamic_config_path/coolify.yaml";- if (empty($settings->fqdn) || isCloud()) {+ if (empty($settings->fqdn) || (isCloud() && $this->id !== 0)) {instant_remote_process(["rm -f $file",], $this);@@ -359,7 +359,7 @@ respond 404}} else if ($this->proxyType() === 'CADDY') {$file = "$dynamic_config_path/coolify.caddy";- if (empty($settings->fqdn)) {+ if (empty($settings->fqdn) || (isCloud() && $this->id !== 0)) {instant_remote_process(["rm -f $file",], $this);