This commit is contained in:
Almira Krdzic
2018-07-30 17:26:55 +02:00
parent 828c71c253
commit 0ac5e5940b
7 changed files with 48 additions and 42 deletions

View File

@@ -15,7 +15,7 @@ Env::init();
* Set up our global environment constant and load its config first
* Default: development
*/
define('WP_ENV', env('WP_ENV') ?: 'local');
define('WP_ENV', env('WP_ENV') ?: 'development');
$env_config = __DIR__ . '/environments/' . WP_ENV . '.php';
@@ -26,7 +26,7 @@ if (file_exists($env_config)) {
/**
* URLs
*/
define('WP_HOME', env('WP_HOME'));
define('WP_HOME', env('WP_HOME') ?: 'http://localhost');
define('WP_SITEURL', WP_HOME . '/wp');
/**
@@ -43,7 +43,7 @@ define('VP_PROJECT_ROOT', $webroot_dir . '/wp/');
define('DB_NAME', env('MYSQL_DATABASE'));
define('DB_USER', env('MYSQL_USER'));
define('DB_PASSWORD', env('MYSQL_PASSWORD'));
define('DB_HOST', env('WP_DB_HOST') ?: 'db');
define('DB_HOST', env('WP_DB_HOST') ?: 'localhost');
define('DB_CHARSET', 'utf8mb4');
define('DB_COLLATE', '');
$table_prefix = env('DB_PREFIX') ?: 'wp_';