init
This commit is contained in:
commit
de73fc619a
3560 changed files with 747274 additions and 0 deletions
35
config/environments/development.php
Executable file
35
config/environments/development.php
Executable file
|
|
@ -0,0 +1,35 @@
|
|||
<?php
|
||||
/**
|
||||
* Configuration overrides for WP_ENV === 'development'
|
||||
*/
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
use Roots\WPConfig\Config;
|
||||
use function Env\env;
|
||||
|
||||
Config::define("SAVEQUERIES", true);
|
||||
Config::define("WP_DEBUG", true);
|
||||
Config::define("WP_DEBUG_DISPLAY", false);
|
||||
Config::define("WP_DEBUG_LOG", env("WP_DEBUG_LOG") ?? true);
|
||||
Config::define("WP_DISABLE_FATAL_ERROR_HANDLER", true);
|
||||
Config::define("SCRIPT_DEBUG", true);
|
||||
Config::define("DISALLOW_INDEXING", true);
|
||||
ini_set("display_errors", "1");
|
||||
|
||||
// Enable plugin and theme updates and installation from the admin
|
||||
Config::define("DISALLOW_FILE_MODS", false);
|
||||
|
||||
// WooCommerce
|
||||
Config::define("WOOCOMMERCE_API_CONSUMER_KEY", env("WOOCOMMERCE_API_CONSUMER_KEY"));
|
||||
Config::define("WOOCOMMERCE_API_CONSUMER_SECRET", env("WOOCOMMERCE_API_CONSUMER_SECRET"));
|
||||
|
||||
// Stripe
|
||||
Config::define("STRIPE_API_SECRET", env("STRIPE_API_SECRET"));
|
||||
|
||||
// Redis
|
||||
Config::define("WP_REDIS_HOST", env("WP_REDIS_HOST"));
|
||||
Config::define("WP_REDIS_PASSWORD", env("WP_REDIS_PASSWORD"));
|
||||
|
||||
// Désactive la mise à jour des traductions automatiques
|
||||
Config::define("WP_AUTO_UPDATE_TRANSLATION", false);
|
||||
Loading…
Add table
Add a link
Reference in a new issue