Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Docker for Drupal
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Monitor
Service Desk
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Composer
plugin
Docker for Drupal
Commits
92a27d96
Commit
92a27d96
authored
4 years ago
by
jurgenhaas
Browse files
Options
Downloads
Patches
Plain Diff
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
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
ahoy.debug.yml
+16
-0
16 additions, 0 deletions
ahoy.debug.yml
composer.json
+4
-0
4 additions, 0 deletions
composer.json
src/Handler.php
+1
-1
1 addition, 1 deletion
src/Handler.php
with
21 additions
and
1 deletion
ahoy.debug.yml
0 → 100644
+
16
−
0
View file @
92a27d96
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
This diff is collapsed.
Click to expand it.
composer.json
+
4
−
0
View file @
92a27d96
...
...
@@ -54,6 +54,10 @@
"live"
:
{
"usage"
:
"Interact with the live site"
,
"imports"
:
[
"ahoy.live.yml"
]
},
"debug"
:
{
"usage"
:
"PHP debugging"
,
"imports"
:
[
"ahoy.debug.yml"
]
}
}
}
...
...
This diff is collapsed.
Click to expand it.
src/Handler.php
+
1
−
1
View file @
92a27d96
...
...
@@ -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'
,
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment