mirror of
https://github.com/grocy/grocy.git
synced 2025-08-21 04:43:32 +00:00
Auto create the data/viewcache folder if it doesn't exist (however)
This commit is contained in:
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();
|
||||||
|
Reference in New Issue
Block a user