- Removed old migration scripts for profiles and users to RBAC. - Updated config redirector to utilize environment variables for configuration loading. - Added .gitignore files to firmware, log, and marketing directories to prevent unnecessary file tracking. - Introduced new configuration files for acceptance, development, and production environments with relevant settings. - Enhanced settings files to include exception lists, security keys, and database settings.
11 lines
519 B
PHP
11 lines
519 B
PHP
<?php
|
|
|
|
//======================================================================
|
|
//REDIRECTOR TO CONFIG FILE BASED ON .htacces - SetEnv APP_ENV development
|
|
//======================================================================
|
|
$env = getenv('APP_ENV') ?: 'development';
|
|
|
|
$config_location = ((file_exists(dirname(__FILE__,2).'/custom/'.$env.'/settings/'.$env.'_config.php')) ? dirname(__FILE__,2).'/custom/'.$env.'/settings/'.$env.'_config.php' : dirname(__FILE__).'/'.$env.'_config.php');
|
|
|
|
include $config_location;
|
|
?>
|