Skip to content
Snippets Groups Projects
Commit 92a27d96 authored by jurgenhaas's avatar jurgenhaas
Browse files

Disable PHP debugging by default and provide ahoy commands to turn on and off

parent 7de1f884
No related branches found
No related tags found
No related merge requests found
ahoyapi: v2
commands:
on:
cmd: |
echo "PHP_DEBUG=1" >>.env
env -i $(cat .env | xargs) >.env
composer lakedrops:docker4drupal --no-interaction
ahoy d4d up
usage: Turn on PHP debugging
off:
cmd: |
echo "PHP_DEBUG=0" >>.env
env -i $(cat .env | xargs) >.env
composer lakedrops:docker4drupal --no-interaction
ahoy d4d up
usage: Turn off PHP debugging
......@@ -54,6 +54,10 @@
"live": {
"usage": "Interact with the live site",
"imports": ["ahoy.live.yml"]
},
"debug": {
"usage": "PHP debugging",
"imports": ["ahoy.debug.yml"]
}
}
}
......
......@@ -261,7 +261,7 @@ class Handler extends BaseHandler {
],
'php' => [
'version' => $env->receiveGlobal('PHP_VERSION', 'PHP version', '7.2'),
'xdebug' => $this->isLocalDevMode() ? 1 : 0,
'xdebug' => $env->receiveGlobal('PHP_DEBUG', 'PHP debug', '0'),
],
'webserver' => [
'type' => 'apache',
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment