mirror of
https://github.com/pelican-dev/panel.git
synced 2025-07-03 04:11:07 +02:00
Wip
This commit is contained in:
parent
36e2fa8e2b
commit
e15d515f71
@ -308,4 +308,10 @@ class Server extends Model
|
||||
|
||||
return cache()->get("servers.$this->uuid.container.status") ?? 'missing';
|
||||
}
|
||||
|
||||
public function getPrimaryEndpoint()
|
||||
{
|
||||
dd($this->ports);
|
||||
dd($this->variables);
|
||||
}
|
||||
}
|
||||
|
@ -11,6 +11,9 @@ class StartupCommandService
|
||||
*/
|
||||
public function handle(Server $server, bool $hideAllValues = false): string
|
||||
{
|
||||
$endpoint = $server->getPrimaryEndpoint();
|
||||
|
||||
|
||||
$find = ['{{SERVER_MEMORY}}', '{{SERVER_IP}}', '{{SERVER_PORT}}'];
|
||||
$replace = [$server->memory, $server->allocation->ip, $server->allocation->port];
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user