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

#16 Add renderer_config debug mode to be turned on/off with ahoy

parent 6fb0cf2f
No related branches found
No related tags found
1 merge request!128Merging develop into main
Pipeline #1162125 passed
......@@ -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
......@@ -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'),
],
];
}
......
......@@ -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:
{}
......
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