From 59322d760fc1c658f7a2ef7ccd868e8b3ce136fc Mon Sep 17 00:00:00 2001 From: Kowalski Date: Sun, 11 Oct 2026 22:02:28 +0200 Subject: [PATCH] Konfigy + debugMode jen localhost --- .vscode/sftp.json | 2 +- app/Bootstrap.php | 8 +++++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/.vscode/sftp.json b/.vscode/sftp.json index 22da7a3..fed726a 100644 --- a/.vscode/sftp.json +++ b/.vscode/sftp.json @@ -2,7 +2,7 @@ "name": "Kmetix", "host": "kmetix.cz", "protocol": "sftp", - "port": 22, + "port": 52222, "username": "root", "remotePath": "/var/www/html/obvody.kmetix.cz", "password": "Leviathan8!5379_", diff --git a/app/Bootstrap.php b/app/Bootstrap.php index ef6468f..04d1312 100644 --- a/app/Bootstrap.php +++ b/app/Bootstrap.php @@ -33,7 +33,13 @@ class Bootstrap public function initializeEnvironment(): void { //$this->configurator->setDebugMode('secret@23.75.345.200'); // enable for your remote IP - //$this->configurator->setDebugMode(false); + $this->configurator->setDebugMode(false); + try { + if (str_contains($_SERVER['SERVER_NAME'], 'localhost')) + $this->configurator->setDebugMode(true); + } catch (\Exception) { + // nic + } $this->configurator->enableTracy($this->rootDir . '/log'); $this->configurator->createRobotLoader()