Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1diff --git a/app/AppKernel.php b/app/AppKernel.php 2index 347197e..902b558 100644 3--- a/app/AppKernel.php 4+++ b/app/AppKernel.php 5@@ -69,19 +69,24 @@ class AppKernel extends Kernel 6 return __DIR__; 7 } 8 9+ public function getProjectDir() 10+ { 11+ return getenv('WALLABAG_DATA') ?: dirname(__DIR__); 12+ } 13+ 14 public function getCacheDir() 15 { 16- return dirname(__DIR__) . '/var/cache/' . $this->getEnvironment(); 17+ return $this->getProjectDir() . '/var/cache/' . $this->getEnvironment(); 18 } 19 20 public function getLogDir() 21 { 22- return dirname(__DIR__) . '/var/logs'; 23+ return $this->getProjectDir() . '/var/logs'; 24 } 25 26 public function registerContainerConfiguration(LoaderInterface $loader) 27 { 28- $loader->load($this->getRootDir() . '/config/config_' . $this->getEnvironment() . '.yml'); 29+ $loader->load($this->getProjectDir() . '/app/config/config_' . $this->getEnvironment() . '.yml'); 30 31 $loader->load(function ($container) { 32 if ($container->getParameter('use_webpack_dev_server')) {