Laravel 5 maintenance mode turn on without artisan -
is there possibility turn on , turn off laravel 5 maintenance without php artisan , down commands when website being hosted ?
what i've done:
route::get('site/shutdown', function(){ return artisan::call('down'); }); route::get('site/live', function(){ return artisan::call('up'); }); the first route working fine. when call site/live site still shuted down. can cause problem ?
if project down, cannot call function.
what happened after run php artisan down. creates file named down inside storage/framework. after running php artisan up removes file.
you can create file manually inside storage/framework. down project. when want live project again, remove file.
Comments
Post a Comment