Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
Drupal Environment
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
Drupal Environment
Commits
ae354336
You need to sign in or sign up before continuing.
Commit
ae354336
authored
1 year ago
by
jurgenhaas
Browse files
Options
Downloads
Patches
Plain Diff
#16
Add renderer_config debug mode to be turned on/off with ahoy
parent
6fb0cf2f
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!128
Merging develop into main
Pipeline
#1162125
passed
1 year ago
Stage: release
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
ahoy.drupal.yml
+20
-2
20 additions, 2 deletions
ahoy.drupal.yml
src/Handler.php
+3
-0
3 additions, 0 deletions
src/Handler.php
templates/services.yml.twig
+1
-0
1 addition, 0 deletions
templates/services.yml.twig
with
24 additions
and
2 deletions
ahoy.drupal.yml
+
20
−
2
View file @
ae354336
...
...
@@ -6,11 +6,29 @@ commands:
echo "DRUPAL_LIVE=1" >>.env
env -i $(cat .env | xargs) >.env
composer lakedrops:config --no-interaction
usage
:
Turn live mode on - ATTENTION - you should run drush cr afterwards
drush cr
usage
:
Turn live mode on.
dev
:
cmd
:
|
DRUPAL_LIVE=0
echo "DRUPAL_LIVE=0" >>.env
env -i $(cat .env | xargs) >.env
composer lakedrops:config --no-interaction
usage
:
Turn live mode off - ATTENTION - you should run drush cr afterwards
drush cr
usage
:
Turn live mode off.
rcon
:
cmd
:
|
RENDERER_CONFIG_DEBUG=1
echo "RENDERER_CONFIG_DEBUG=1" >>.env
env -i $(cat .env | xargs) >.env
composer lakedrops:config --no-interaction
drush cr
usage
:
Turn on renderer config debug mode
rcoff
:
cmd
:
|
RENDERER_CONFIG_DEBUG=0
echo "RENDERER_CONFIG_DEBUG=0" >>.env
env -i $(cat .env | xargs) >.env
composer lakedrops:config --no-interaction
drush cr
usage
:
Turn off renderer config debug mode
This diff is collapsed.
Click to expand it.
src/Handler.php
+
3
−
0
View file @
ae354336
...
...
@@ -59,6 +59,9 @@ class Handler extends BaseHandler {
'domain'
=>
str_replace
([
'.'
,
'-'
],
[
'\\.'
,
'\\-'
],
'www.example.com'
),
'aliases'
=>
[],
'live'
=>
(
getenv
(
'LAKEDROPS_BUILD_NG'
)
===
'yes'
)
||
!
empty
(
$this
->
env
->
receiveGlobal
(
'DRUPAL_LIVE'
,
'Live mode'
,
'0'
)),
'renderer_config'
=>
[
'debug'
=>
$this
->
env
->
receiveGlobal
(
'RENDERER_CONFIG_DEBUG'
,
''
,
'0'
),
],
];
}
...
...
This diff is collapsed.
Click to expand it.
templates/services.yml.twig
+
1
−
0
View file @
ae354336
...
...
@@ -14,6 +14,7 @@ parameters:
max-age: 0
contexts: ['session', 'user']
tags: []
debug:
{{
renderer_config.debug
?
'true'
:
'false'
}}
http.response.debug_cacheability_headers: false
factory.keyvalue:
{}
...
...
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