mirror of
https://github.com/tiennm99/coolify.git
synced 2026-10-03 05:19:37 +00:00
1 parent
da07b4fdcf
commit
1fe4dd722b
349 files changed
+3689
-4184
No files matched your search
@@ -33,7 +33,11 @@ class Links extends Component
|
||||
if ($application->ports) {
|
||||
$portsCollection = collect(str($application->ports)->explode(','));
|
||||
$portsCollection->map(function ($port) {
|
||||
$hostPort = str($port)->contains(':') ? str($port)->before(':') : $port;
|
||||
if (str($port)->contains(':')) {
|
||||
$hostPort = str($port)->before(':');
|
||||
} else {
|
||||
$hostPort = $port;
|
||||
}
|
||||
$this->links->push(base_url(withPort: false).":{$hostPort}");
|
||||
});
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user