New project structure init

This commit is contained in:
Almira Krdzic
2018-07-30 08:54:41 +02:00
parent 63cce6100c
commit e91e2d8a93
2735 changed files with 1345 additions and 952660 deletions

View 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']);
}