Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Default support of whoops #3

Open
matbrady opened this issue Aug 7, 2020 · 0 comments
Open

Default support of whoops #3

matbrady opened this issue Aug 7, 2020 · 0 comments
Labels
enhancement New feature or request

Comments

@matbrady
Copy link
Member

matbrady commented Aug 7, 2020

Include the whoops plugin by default. This requires modifying the wp-config.php to include the necessary environment variables.

WP_DEBUG=true
WP_DEBUG_DISPLAY=true

The WP_DEBUG_DISPLAY constant will need defined here:

/**
* Set debug modes
*/
define( 'WP_DEBUG', getenv( 'WP_DEBUG' ) === 'true' ? true : false );
define( 'IS_LOCAL', getenv( 'IS_LOCAL' ) !== false ? true : false );

The Lando Pantheon recipe does create a PANTHEON_ENVIRONMENT variables. Which is why the wp-config.php needs updated. Locally the config creates the constants based on it being a Pantheon Environment which equals lando.

if ( isset( $_ENV['PANTHEON_ENVIRONMENT'] ) ):

@matbrady matbrady added the enhancement New feature or request label Aug 7, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant