Skip to content

Commit

Permalink
Enable debug config and install query-monitor plugin
Browse files Browse the repository at this point in the history
- Setting up some default configuration for better debugging
during development.
- Installing the Query Monitor plugin that provides admin bar to
monitor requests and queries.
  • Loading branch information
comzeradd committed Mar 6, 2024
1 parent 5ddf3f1 commit cbf44b2
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .wp-env.override.json.dist
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"config": {
"WP_APP_ENV": "local",
"WP_CACHE": false,
"WP_DEBUG": false,
"WP_DEBUG_LOG": true,
"SCRIPT_DEBUG": true,
"QM_ENABLE_CAPS_PANEL": true
}
}
7 changes: 7 additions & 0 deletions scripts/install.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,12 @@ console.log('Installing & activating plugins ...');
composer('update', config.paths.container.app);
installPluginsDependencies(config);

/**
* Install development requirements
*/
console.log('Installing development requirements ...');
run('cp -n .wp-env.override.json.dist .wp-env.override.json');

/**
* Images
*/
Expand All @@ -75,6 +81,7 @@ importDefaultContent(config.planet4.content.db);
*/
wp('plugin activate --all');
wp('plugin deactivate elasticpress');
run('npx wp-env run cli wp plugin install query-monitor');

console.log(
`The local instance is now available at ${config.config.WP_SITEURL}`
Expand Down

0 comments on commit cbf44b2

Please sign in to comment.