$settings['config_sync_directory'] = '../config/sync'; $settings['file_temp_path'] = '/tmp'; if (file_exists(dirname(__DIR__, 3) . '/.env')) { $dotenv = Dotenv\Dotenv::createImmutable(dirname(__DIR__, 3)); $dotenv->load(); } if (isset($_SERVER['APP_ENV'])) { if (file_exists($app_root . '/' . $site_path . '/settings.'. $_SERVER['APP_ENV'] . '.php')) { include_once $app_root . '/' . $site_path . '/settings.'. $_SERVER['APP_ENV'] . '.php'; } }