diff --git a/routes/web.php b/routes/web.php index f7b3edd..5973e88 100755 --- a/routes/web.php +++ b/routes/web.php @@ -17,9 +17,6 @@ use App\Http\Controllers\UserController; | */ -// Disables routes if in Maintenance Mode -if(env('MAINTENANCE_MODE') != 'true' and !file_exists(base_path("storage/MAINTENANCE"))){ - // Prevents section below from being run by 'composer update' if(file_exists(base_path('storage/app/ISINSTALLED'))){ // generates new APP KEY if no one is set @@ -29,6 +26,9 @@ if(file_exists(base_path('storage/app/ISINSTALLED'))){ if(!file_exists(base_path("config/advanced-config.php"))){copy(base_path('storage/templates/advanced-config.php'), base_path('config/advanced-config.php'));} } +// Disables routes if in Maintenance Mode +if(env('MAINTENANCE_MODE') != 'true' and !file_exists(base_path("storage/MAINTENANCE"))){ + //Changes the homepage to a LittleLink Custom profile if set in the config if(config('advanced-config.custom_home_url') != '') { $custom_home_page_url = config('advanced-config.custom_home_url');