Laravel 5 maintenance mode turn on without artisan

后端 未结 6 1482
-上瘾入骨i
-上瘾入骨i 2021-01-31 18:38

Is there any possibility to turn on and turn off Laravel 5 maintenance without php artisan up and down commands when my website is being hosted ?

What I\'ve done:

6条回答
  •  没有蜡笔的小新
    2021-01-31 18:49

    In order to make your site live again using an url, you can create a live.php file which you put in laravel's public folder and then visit http://your.domain/live.php .

    In the live.php file you need something like this: (check your projects directory structure if you don't use the default public folder!)

提交回复
热议问题