Konfigy + debugMode jen localhost

master
Kowalski 2026-10-11 22:02:28 +02:00
parent acbdb6ba83
commit 59322d760f
2 changed files with 8 additions and 2 deletions

2
.vscode/sftp.json vendored
View File

@ -2,7 +2,7 @@
"name": "Kmetix", "name": "Kmetix",
"host": "kmetix.cz", "host": "kmetix.cz",
"protocol": "sftp", "protocol": "sftp",
"port": 22, "port": 52222,
"username": "root", "username": "root",
"remotePath": "/var/www/html/obvody.kmetix.cz", "remotePath": "/var/www/html/obvody.kmetix.cz",
"password": "Leviathan8!5379_", "password": "Leviathan8!5379_",

View File

@ -33,7 +33,13 @@ class Bootstrap
public function initializeEnvironment(): void public function initializeEnvironment(): void
{ {
//$this->configurator->setDebugMode('secret@23.75.345.200'); // enable for your remote IP //$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->enableTracy($this->rootDir . '/log');
$this->configurator->createRobotLoader() $this->configurator->createRobotLoader()