refactor: Remove unnecessary port appending in updateCompose function
This commit is contained in:
parent
099d6801b7
commit
0ddd5f0a79
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user