laravel项目正式上线后需要做的操作

2019-08-10  本文已影响0人  乌云龙
app_debug : false //关闭调试模式
php artisan config:cache //配置缓存,生成:bootstrap/cache/config.php
php artisan config:clear
php artisan route:cache //路由缓存,生成:bootstrap/cache/routes.php
php artisan route:clear
php artisan optimize //优化,生成编译文件;
php artisan clear-compiled  //仅在非调试环境下生成:bootstrap/cache/compiled.php
上一篇下一篇

猜你喜欢

热点阅读