mirror of
https://github.com/ConnectedHumber/Air-Quality-Web
synced 2024-12-22 10:25:01 +00:00
[production] Recursively create missing directories
This commit is contained in:
parent
9f0442d1cf
commit
bc6944ba02
1 changed files with 2 additions and 2 deletions
4
api.php
4
api.php
|
@ -26,11 +26,11 @@ $di_builder->addDefinitions("di_config.php");
|
|||
if($settings->get("env.mode") == "production") {
|
||||
// http://php-di.org/doc/container-configuration.html
|
||||
if(!file_exists(ROOT_DIR."data/cache/php_di"))
|
||||
mkdir(ROOT_DIR."data/cache/php_di", 0700);
|
||||
mkdir(ROOT_DIR."data/cache/php_di", 0700, true);
|
||||
$builder->enableCompilation(ROOT_DIR."data/cache/php_di");
|
||||
|
||||
if(!file_exists(ROOT_DIR."data/cache/php_di_proxies"))
|
||||
mkdir(ROOT_DIR."data/cache/php_di_proxies", 0700);
|
||||
mkdir(ROOT_DIR."data/cache/php_di_proxies", 0700, true);
|
||||
$builder->writeProxiesToFile(true, ROOT_DIR."data/cache/php_di_proxies");
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue