Skip to content
This repository has been archived by the owner on Mar 14, 2023. It is now read-only.

Commit

Permalink
config moved to root
Browse files Browse the repository at this point in the history
  • Loading branch information
dg committed Jan 19, 2021
1 parent c642ccd commit aea4f85
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 5 deletions.
9 changes: 5 additions & 4 deletions app/Bootstrap.php
Expand Up @@ -12,20 +12,21 @@ class Bootstrap
public static function boot(): Configurator
{
$configurator = new Configurator;
$appDir = dirname(__DIR__);

//$configurator->setDebugMode('secret@23.75.345.200'); // enable for your remote IP
$configurator->enableTracy(__DIR__ . '/../log');
$configurator->enableTracy($appDir . '/log');

$configurator->setTimeZone('Europe/Prague');
$configurator->setTempDirectory(__DIR__ . '/../temp');
$configurator->setTempDirectory($appDir . '/temp');

$configurator->createRobotLoader()
->addDirectory(__DIR__)
->register();

$configurator
->addConfig(__DIR__ . '/config/common.neon')
->addConfig(__DIR__ . '/config/local.neon');
->addConfig($appDir . '/config/common.neon')
->addConfig($appDir . '/config/local.neon');

return $configurator;
}
Expand Down
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion readme.md
Expand Up @@ -36,7 +36,7 @@ Then visit `http://localhost:8000` in your browser to see the welcome page.
For Apache or Nginx, setup a virtual host to point to the `www/` directory of the project and you
should be ready to go.

It is CRITICAL that whole `app/`, `log/` and `temp/` directories are not accessible directly
It is CRITICAL that whole `app/`, `config`, `log/` and `temp/` directories are not accessible directly
via a web browser. See [security warning](https://nette.org/security-warning).


Expand Down

0 comments on commit aea4f85

Please sign in to comment.