Skip to content

Commit

Permalink
Enabled debugging while updating
Browse files Browse the repository at this point in the history
  • Loading branch information
JulianPrieber committed Dec 5, 2022
1 parent b708ba2 commit c52dd49
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions resources/views/update.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,15 @@

@if($_SERVER['QUERY_STRING'] === 'finishing')
<?php //finishing up update ?>
<?php
$debug = NULL;
if(EnvEditor::getKey('APP_DEBUG') == 'false'){
if(EnvEditor::keyExists('APP_DEBUG')){EnvEditor::editKey('APP_DEBUG', 'true');}
if(EnvEditor::keyExists('APP_ENV')){EnvEditor::editKey('APP_ENV', 'local');}
if(EnvEditor::keyExists('LOG_LEVEL')){EnvEditor::editKey('LOG_LEVEL', 'debug');}
$debug = true;
}
?>
<div class="logo-container fadein">
<img class="logo-img loading" src="{{ asset('littlelink/images/just-gear.svg') }}" alt="Logo">
<div class="logo-centered">l</div>
Expand All @@ -188,6 +197,13 @@
@include('components.finishing')

<?php if(file_exists(base_path("storage/MAINTENANCE"))){unlink(base_path("storage/MAINTENANCE"));} ?>
<?php
if($debug === true){
if(EnvEditor::keyExists('APP_DEBUG')){EnvEditor::editKey('APP_DEBUG', 'false');}
if(EnvEditor::keyExists('APP_ENV')){EnvEditor::editKey('APP_ENV', 'production');}
if(EnvEditor::keyExists('LOG_LEVEL')){EnvEditor::editKey('LOG_LEVEL', 'error');}
}
?>
@endif

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

0 comments on commit c52dd49

Please sign in to comment.