This commit is contained in:
Lance Pioch 2024-06-14 07:54:07 -04:00
parent 36e2fa8e2b
commit e15d515f71
2 changed files with 9 additions and 0 deletions

View File

@ -308,4 +308,10 @@ class Server extends Model
return cache()->get("servers.$this->uuid.container.status") ?? 'missing'; return cache()->get("servers.$this->uuid.container.status") ?? 'missing';
} }
public function getPrimaryEndpoint()
{
dd($this->ports);
dd($this->variables);
}
} }

View File

@ -11,6 +11,9 @@ class StartupCommandService
*/ */
public function handle(Server $server, bool $hideAllValues = false): string public function handle(Server $server, bool $hideAllValues = false): string
{ {
$endpoint = $server->getPrimaryEndpoint();
$find = ['{{SERVER_MEMORY}}', '{{SERVER_IP}}', '{{SERVER_PORT}}']; $find = ['{{SERVER_MEMORY}}', '{{SERVER_IP}}', '{{SERVER_PORT}}'];
$replace = [$server->memory, $server->allocation->ip, $server->allocation->port]; $replace = [$server->memory, $server->allocation->ip, $server->allocation->port];