This commit introduces a more reliable and consistent approach to setting up the development environment using backups: - Add setup-from-backup.sh script for environment setup from existing backups - Standardize script naming and organization - Move obsolete scripts to bin/obsolete directory - Update documentation with new workflow instructions - Create migration guide for transitioning to new workflow - Update Memory Bank with workflow improvements The new workflow provides: - More reliable environment setup - Faster setup process - Offline development capability - Consistent development environments across team members Breaking changes: - setup-dev.sh is replaced by setup-from-backup.sh - sync-and-setup.sh is replaced by separate scripts - verify-with-wpcli.sh is no longer used Migration path is documented in MIGRATION_GUIDE.md
109 lines
3.9 KiB
Text
109 lines
3.9 KiB
Text
<?php
|
|
define( 'WP_CACHE', true );
|
|
/**
|
|
* The base configurations of the WordPress.
|
|
*
|
|
* This file has the following configurations: MySQL settings, Table Prefix,
|
|
* Secret Keys, WordPress Language, and ABSPATH. You can find more information
|
|
* by visiting {@link http://codex.wordpress.org/Editing_wp-config.php Editing
|
|
* wp-config.php} Codex page. You can get the MySQL settings from your web host.
|
|
*
|
|
* This file is used by the wp-config.php creation script during the
|
|
* installation. You don't have to use the web site, you can just copy this file
|
|
* to "wp-config.php" and fill in the values.
|
|
*
|
|
* @package WordPress
|
|
*/
|
|
// ** MySQL settings - You can get this info from your web host ** //
|
|
/** The name of the database for WordPress */
|
|
define('DB_NAME', 'ncjzsayvsk');
|
|
/** MySQL database username */
|
|
define('DB_USER', 'ncjzsayvsk');
|
|
/** MySQL database password */
|
|
define('DB_PASSWORD', 'sU5knzeUgb');
|
|
/** MySQL hostname */
|
|
define('DB_HOST', 'localhost');
|
|
/** Database Charset to use in creating database tables. */
|
|
define('DB_CHARSET', 'utf8');
|
|
/** The Database Collate type. Don't change this if in doubt. */
|
|
define('DB_COLLATE', '');
|
|
/**#@+
|
|
* Authentication Unique Keys and Salts.
|
|
* Change these to different unique phrases!
|
|
* You can generate these using the {@link https://api.wordpress.org/secret-key/1.1/salt/ WordPress.org secret-key service}
|
|
*/
|
|
require('wp-salt.php');
|
|
/**
|
|
* WordPress Database Table prefix.
|
|
*
|
|
* You can have multiple installations in one database if you give each a unique
|
|
* prefix. Only numbers, letters, and underscores please!
|
|
*/
|
|
$table_prefix = 'wp_';
|
|
/**
|
|
* WordPress Localized Language, defaults to English.
|
|
*
|
|
* Change this to localize WordPress. A corresponding MO file for the chosen
|
|
* language must be installed to wp-content/languages. For example, install
|
|
* de_DE.mo to wp-content/languages and set WPLANG to 'de_DE' to enable German
|
|
* language support.
|
|
*/
|
|
define('FS_METHOD','direct');
|
|
define('WPLANG', '');
|
|
define('FS_CHMOD_DIR', (0775 & ~ umask()));
|
|
define('FS_CHMOD_FILE', (0664 & ~ umask()));
|
|
/**
|
|
* For developers: WordPress debugging mode.
|
|
*
|
|
* Change this to true to enable the display of notices during development.
|
|
* It is strongly recommended that plugin and theme developers use WP_DEBUG
|
|
* in their development environments.
|
|
*/
|
|
|
|
|
|
|
|
define( 'WP_REDIS_CONFIG', [
|
|
'token' => "e279430effe043b8c17d3f3c751c4c0846bc70c97f0eaaea766b4079001c",
|
|
'host' => '127.0.0.1',
|
|
'port' => 6379,
|
|
'database' => "4155",
|
|
'timeout' => 2.5,
|
|
'read_timeout' => 2.5,
|
|
'split_alloptions' => true,
|
|
'async_flush' => true,
|
|
'client' => 'phpredis',
|
|
'compression' => 'zstd',
|
|
'serializer' => 'igbinary',
|
|
'prefetch' => true,
|
|
'debug' => false,
|
|
'save_commands' => false,
|
|
'prefix' => DB_NAME,
|
|
] );
|
|
define( 'WP_REDIS_DISABLED', false );
|
|
/* That's all, stop editing! Happy blogging. */
|
|
/** Absolute path to the WordPress directory. */
|
|
if ( !defined('ABSPATH') )
|
|
define('ABSPATH', dirname(__FILE__) . '/');
|
|
/** Sets up WordPress vars and included files. */
|
|
require_once(ABSPATH . 'wp-settings.php');
|
|
|
|
/**
|
|
* For developers: WordPress debugging mode.
|
|
*
|
|
* Cloudways-specific error logging configuration
|
|
*/
|
|
define('WP_DEBUG', true);
|
|
define('WP_DEBUG_LOG', true); // Ensures errors are written to the error log
|
|
define('WP_DEBUG_DISPLAY', false); // Don't show errors on screen for security
|
|
@ini_set('display_errors', 0); // Don't display errors in browser
|
|
|
|
// Use the Cloudways error logging method
|
|
@ini_set('log_errors', 1); // Log errors to Apache error log
|
|
@ini_set('error_log', null); // Use default Apache error log location
|
|
|
|
// Additional information for debugging
|
|
define('SAVEQUERIES', false); // Set to true when debugging database issues
|
|
define('SCRIPT_DEBUG', false); // Set to true when debugging script loading issues
|
|
|
|
// Disable the WordPress fatal error handler in debug mode
|
|
define('WP_DISABLE_FATAL_ERROR_HANDLER', true);
|