Skip to content

Commit

Permalink
Merge pull request #18 from humanmade/enable-env-types
Browse files Browse the repository at this point in the history
Enable dev tools on all but production
  • Loading branch information
joehoyle authored Jun 17, 2019
2 parents 79b4cd6 + 845c6ef commit a0fa48d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ The Altis developer tools are built on top of the [Query Monitor](https://querym

## Getting started

The developer tools are active by default for local development. While logged in, a summary of the request's details will appear in the toolbar at the top of the page. Click this summary to open the developer tools.
The developer tools are active by default for all environment types except `production`. While logged in, a summary of the request's details will appear in the toolbar at the top of the page. Click this summary to open the developer tools.

![Screenshot of the developer tools toolbar item](./toolbar.png)

Expand Down
4 changes: 2 additions & 2 deletions load.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

namespace Altis\Dev_Tools; // @codingStandardsIgnoreLine

use function Altis\get_environment_architecture;
use function Altis\get_environment_type;
use function Altis\register_module;

require_once __DIR__ . '/inc/namespace.php';
Expand All @@ -14,7 +14,7 @@

add_action( 'altis.modules.init', function () {
$default_settings = [
'enabled' => in_array( get_environment_architecture(), [ 'chassis', 'local-server' ] ),
'enabled' => get_environment_type() !== 'production',
'query-monitor' => true,
];

Expand Down

0 comments on commit a0fa48d

Please sign in to comment.