Skip to content

Commit c52dd49

Browse files
committed
Enabled debugging while updating
1 parent b708ba2 commit c52dd49

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

resources/views/update.blade.php

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -179,6 +179,15 @@
179179

180180
@if($_SERVER['QUERY_STRING'] === 'finishing')
181181
<?php //finishing up update ?>
182+
<?php
183+
$debug = NULL;
184+
if(EnvEditor::getKey('APP_DEBUG') == 'false'){
185+
if(EnvEditor::keyExists('APP_DEBUG')){EnvEditor::editKey('APP_DEBUG', 'true');}
186+
if(EnvEditor::keyExists('APP_ENV')){EnvEditor::editKey('APP_ENV', 'local');}
187+
if(EnvEditor::keyExists('LOG_LEVEL')){EnvEditor::editKey('LOG_LEVEL', 'debug');}
188+
$debug = true;
189+
}
190+
?>
182191
<div class="logo-container fadein">
183192
<img class="logo-img loading" src="{{ asset('littlelink/images/just-gear.svg') }}" alt="Logo">
184193
<div class="logo-centered">l</div>
@@ -188,6 +197,13 @@
188197
@include('components.finishing')
189198

190199
<?php if(file_exists(base_path("storage/MAINTENANCE"))){unlink(base_path("storage/MAINTENANCE"));} ?>
200+
<?php
201+
if($debug === true){
202+
if(EnvEditor::keyExists('APP_DEBUG')){EnvEditor::editKey('APP_DEBUG', 'false');}
203+
if(EnvEditor::keyExists('APP_ENV')){EnvEditor::editKey('APP_ENV', 'production');}
204+
if(EnvEditor::keyExists('LOG_LEVEL')){EnvEditor::editKey('LOG_LEVEL', 'error');}
205+
}
206+
?>
191207
@endif
192208

193209
@if($_SERVER['QUERY_STRING'] === 'success')

0 commit comments

Comments
 (0)