Konfigy + debugMode jen localhost
parent
acbdb6ba83
commit
59322d760f
|
|
@ -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_",
|
||||
|
|
|
|||
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Reference in New Issue