New project structure init
This commit is contained in:
16
backend/config/environments/local.php
Normal file
16
backend/config/environments/local.php
Normal file
@@ -0,0 +1,16 @@
|
||||
<?php
|
||||
/** Development */
|
||||
define('SAVEQUERIES', true);
|
||||
define('WP_DEBUG', true);
|
||||
define('SCRIPT_DEBUG', true);
|
||||
|
||||
/**
|
||||
* Use Dotenv to set required environment variables and load .env file in root if on local
|
||||
*/
|
||||
|
||||
$dotenv_dir = dirname(dirname(dirname(__DIR__)));
|
||||
$dotenv = new Dotenv\Dotenv($dotenv_dir, 'local.env');
|
||||
if (file_exists($dotenv_dir . '/local.env')) {
|
||||
$dotenv->load();
|
||||
$dotenv->required(['MYSQL_DATABASE', 'MYSQL_USER', 'MYSQL_PASSWORD', 'WP_HOME']);
|
||||
}
|
||||
Reference in New Issue
Block a user