mirror of
https://github.com/LinkStackOrg/LinkStack.git
synced 2025-04-16 19:27:34 +02:00
Fixed bug "Maintenance Mode while updating"
This commit is contained in:
parent
edc2f548c9
commit
bcaf3593b9
@ -17,12 +17,8 @@ use App\Http\Controllers\UserController;
|
|||||||
|
|
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
// Displays Maintenance Mode page
|
// Disables routes if in Maintenance Mode
|
||||||
if(env('MAINTENANCE_MODE') == 'true' or file_exists(base_path("storage/MAINTENANCE"))){
|
if(env('MAINTENANCE_MODE') != 'true' and !file_exists(base_path("storage/MAINTENANCE"))){
|
||||||
Route::get('/{any}', function () {
|
|
||||||
return view('maintenance');
|
|
||||||
})->where('any', '.*');
|
|
||||||
} else {
|
|
||||||
|
|
||||||
// Prevents section below from being run by 'composer update'
|
// Prevents section below from being run by 'composer update'
|
||||||
if(file_exists(base_path('storage/app/ISINSTALLED'))){
|
if(file_exists(base_path('storage/app/ISINSTALLED'))){
|
||||||
@ -164,4 +160,11 @@ Route::get('/updating', function (\Codedge\Updater\UpdaterManager $updater) {
|
|||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
|
// Displays Maintenance Mode page
|
||||||
|
if(env('MAINTENANCE_MODE') == 'true' or file_exists(base_path("storage/MAINTENANCE"))){
|
||||||
|
Route::get('/{any}', function () {
|
||||||
|
return view('maintenance');
|
||||||
|
})->where('any', '.*');
|
||||||
|
}
|
||||||
|
|
||||||
require __DIR__.'/auth.php';
|
require __DIR__.'/auth.php';
|
||||||
|
Loading…
x
Reference in New Issue
Block a user