diff --git a/config/autoload/local.php.dist b/config/autoload/local.php.dist index 113c783..f4525e1 100644 --- a/config/autoload/local.php.dist +++ b/config/autoload/local.php.dist @@ -11,6 +11,13 @@ * credentials from accidentally being committed into version control. */ + $appdir = getenv('APP_DIR') ? getenv('APP_DIR') : '/var/lib/monarc/fo'; + $string = file_get_contents($appdir.'/package.json'); + if($string === FALSE) { + $string = file_get_contents('./package.json'); + } + $package_json = json_decode($string, true); + return array( 'doctrine' => array( 'connection' => array(