Details
PM: Katie French
Server
Hosted by the client on AWS
Repository
The repo is on their own BitBucket account which we have access to via our BitBucket accounts. Currently only Axl and Elliot has access as they pay per user.
Branches
Here an overview of the branches and naming conventions.
production
live
preview
staging
Naming conventions
- updates
- features
- hotfix
Pipelines
–
Development
Add to
wp-config.php
/** Great Run System Config */
define('GR_APPLICATION_ID', 'B836E21C-5D94-4ed4-9950-E3D2CB14955C');
define('GR_SOLO_API_BASE_URL', 'http://virtual.greatrun.org/api/v1');
define('GR_SOLO_API_KEY', 'BtCPt493XPVp');
define('GR_DATABASE_DSN', 'sqlsrv:Server=grcsql01.cyz5ncdg4aeo.eu-west-1.rds.amazonaws.com,1433;Database=stgnova;');
define('GR_DATABASE_USERNAME', 'novaappsuser');
define('GR_DATABASE_PASSWORD', 'T1bb$pci');
Full wp-config.php
for Local WP
<?php
/**
* The base configuration for WordPress
*
* The wp-config.php creation script uses this file during the
* installation. You don't have to use the web site, you can
* copy this file to "wp-config.php" and fill in the values.
*
* This file contains the following configurations:
*
* * MySQL settings
* * Secret keys
* * Database table prefix
* * ABSPATH
*
* @link https://codex.wordpress.org/Editing_wp-config.php
*
* @package WordPress
*/
// ** MySQL settings - You can get this info from your web host ** //
/** The name of the database for WordPress */
define( 'DB_NAME', 'local' );
/** MySQL database username */
define( 'DB_USER', 'root' );
/** MySQL database password */
define( 'DB_PASSWORD', 'root' );
/** 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}
* You can change these at any point in time to invalidate all existing cookies. This will force all users to have to log in again.
*
* @since 2.6.0
*/
define('AUTH_KEY', 'xPkus8dKMIt19H7YWtgVtOSM6XBEU++ZCyHecbTxP2+gfbWAuybpLK7wiwCwbjdTVLyIztlOlYvQriM5CWL/tg==');
define('SECURE_AUTH_KEY', 'JM+DEhM291E53jfde0cupWGDPWonVHJzSjmIEObEm893A1cpclHrsmn7iIhBuyjs0wZbixzEkdJQ8uZfi3hxfA==');
define('LOGGED_IN_KEY', 'ExQU8Dj787OTu0Y/mCVla1qgu85niJqe7AKwSQiU3urdfHWSXaNQc6K2WfFcYhQ0QVnx+ctGjJZf1v4rZ47S9w==');
define('NONCE_KEY', '4kHRieJoPRgCueXYmMoqpyQtJ16s2LuwBLUELBfZTO+T/a8hMkhnRGYxgUVACRx1hP6xrXClNFSMqtTcHIECJQ==');
define('AUTH_SALT', 'S5JNpl+iqBTnIEjbz3ije+PyWNcj48VrOc3St99SlqcEZmvqk2wPm/0RtZa/KS4pVmBRB11VZycCEBS1WHvvBw==');
define('SECURE_AUTH_SALT', 'XxcEV2YHRauaRL2vexAhW/uP2iCq7ec2YWFLTW3jkH4akDRBnDIy0TeN0//hNoptBYUPtio8yARuqzQElAdsBQ==');
define('LOGGED_IN_SALT', 'tRuKLjMLCpHdZw3U8unlNnXdPUqY4IwLo1HLwyr0y+5m4EvA5ciLfESVfC4nAbuTWV4JTElvjxdcTzz0vxRHzg==');
define('NONCE_SALT', '/3VT0w6oWZFmuaLjWoH8fXIWcjnyU2/m9R45JeMqJx09yjKO7+t7VjiPFMQ5KFAVYA8BqCVj7uAa9oT9V7tkzg==');
/**
* 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_';
/** Great Run System Config */
define('GR_APPLICATION_ID', 'B836E21C-5D94-4ed4-9950-E3D2CB14955C');
define('GR_SOLO_API_BASE_URL', 'http://virtual.greatrun.org/api/v1');
define('GR_SOLO_API_KEY', 'BtCPt493XPVp');
define('GR_DATABASE_DSN', 'sqlsrv:Server=grcsql01.cyz5ncdg4aeo.eu-west-1.rds.amazonaws.com,1433;Database=stgnova;');
define('GR_DATABASE_USERNAME', 'novaappsuser');
define('GR_DATABASE_PASSWORD', 'T1bb$pci');
/* That's all, stop editing! Happy publishing. */
/** 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';
Ignore wp-config.php
locally
Credit: https://dev.to/usmanzaheer1995/git-ignore-files-locally-327i
- Navigate toÂ
.git/info
, in the project folder
- Open theÂ
exclude
 file in your editor
- Put in the files you want to ignore locally (path must be relative to root of project)
- Run the following command in the terminal (in your project folder) :Â
git update-index --skip-worktree <path-names>
Â
Common issues
Caching
W3TC settings can affect the frontend rendering of the site i.e. lazy loading. Make sure these are off.
Swiper image sizing on load
Smush plugin lazy loads by default and this clashes with swiper and images don’t load. Make sure this is off and allow the browser to handle lazy loading of images.
W3TC has the same settings that try to control lazy loading of images, make sure they’re off.
Â