mirror of
				https://github.com/pelican-dev/panel.git
				synced 2025-10-31 07:26:52 +01: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
	 Lance Pioch
						Lance Pioch