Laravel code maintenance, using the application of PHP artisan in maintenance State _php Tutorial

Source: Internet
Author: User
When the application is in maintenance, we can temporarily close the program, the specific use is to use
PHP Artisan Down
Artisan is a program in the root directory of Laravel, and when this command is executed, the app in the app/start/global.php file is called::d own function
When maintenance complete buckle, use PHP artisan up to enable the application
APP::d Own (function ()
{
Return Response::make ("Being Right back!", 503);
});

You can also use PHP artisan to generate key for 32 applications, in/app/config/app.php
The command is: PHP artisan key:generate
If the key is already set, then you can clear it first.

http://www.bkjia.com/PHPjc/821271.html www.bkjia.com true http://www.bkjia.com/PHPjc/821271.html techarticle when the application is in maintenance, we can temporarily close the program, the specific use is to use PHP artisan down artisan is the laravel root directory of a program, when the execution of this command ...

  • Related Article

    Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.