Refactor server and docker cleanup jobs
This commit is contained in:
@@ -36,7 +36,7 @@ class ServiceDatabase extends BaseModel
|
||||
{
|
||||
$port = $this->public_port;
|
||||
$realIp = $this->service->server->ip;
|
||||
if ($realIp === 'host.docker.internal' || isDev()) {
|
||||
if ($this->service->server->isLocalhost() || isDev()) {
|
||||
$realIp = base_ip();
|
||||
}
|
||||
$url = "{$realIp}:{$port}";
|
||||
|
||||
Reference in New Issue
Block a user