mirror of
https://github.com/grocy/grocy.git
synced 2026-04-02 10:59:25 +02:00
Auto create the data/viewcache folder if it doesn't exist (however)
This commit is contained in:
parent
4a8d4120e1
commit
ced709bbf9
6
app.php
6
app.php
|
|
@ -42,6 +42,12 @@ catch (EInvalidConfig $ex)
|
||||||
exit('Invalid setting in config.php: ' . $ex->getMessage());
|
exit('Invalid setting in config.php: ' . $ex->getMessage());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Create data/viewcache folder if it doesn't exist
|
||||||
|
if (!file_exists(GROCY_DATAPATH . '/viewcache'))
|
||||||
|
{
|
||||||
|
mkdir(GROCY_DATAPATH . '/viewcache');
|
||||||
|
}
|
||||||
|
|
||||||
// Setup base application
|
// Setup base application
|
||||||
AppFactory::setContainer(new DI\Container());
|
AppFactory::setContainer(new DI\Container());
|
||||||
$app = AppFactory::create();
|
$app = AppFactory::create();
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user