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.

refactor: Remove unnecessary port appending in updateCompose function

Andras Bacsai0ddd5f0a7999
diff --git a/bootstrap/helpers/services.php b/bootstrap/helpers/services.php
index b2ee24f770..5021071d8d 100644
--- a/bootstrap/helpers/services.php
+++ b/bootstrap/helpers/services.php
@@ -140,7 +140,7 @@ function updateCompose(ServiceApplication|ServiceDatabase $resource)
$variableName = $variableName . "_$port";
$generatedEnv = EnvironmentVariable::where('service_id', $resource->service_id)->where('key', $variableName)->first();
if ($generatedEnv) {
- $generatedEnv->value = $url . ':' . $port . $path;
+ $generatedEnv->value = $url . $path;
$generatedEnv->save();
}
}
@@ -160,7 +160,7 @@ function updateCompose(ServiceApplication|ServiceDatabase $resource)
$env->value = $host . $path;
$env->save();
}
- $port_env->value = $host . ':' . $port . $path;
+ $port_env->value = $host . $path;
$port_env->save();
}
$port_envs_url = EnvironmentVariable::where('service_id', $resource->service_id)->where('key', 'like', "SERVICE_URL_%_$port")->get();
@@ -171,7 +171,7 @@ function updateCompose(ServiceApplication|ServiceDatabase $resource)
$env->value = $url . $path;
$env->save();
}
- $port_env_url->value = $url . ':' . $port . $path;
+ $port_env_url->value = $url . $path;
$port_env_url->save();
}
} else {