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()