当前位置:网站首页>Laravel frame step pit (I)
Laravel frame step pit (I)
2022-07-03 06:55:00 【AquilaEAG】
Official documents :http://laravel.p2hp.com/cndocs/9.x/installation
1、 Environment configuration
Before loading the environment variables of the application ,Laravel Will determine whether it has been provided externally APP_ENV environment variable , Or whether it specifies --env CLI Parameters . If so ,Laravel Will try to load a .env.[APP_ENV] file ( If it exists ). If it doesn't exist , The default will be loaded .env file .
.env Any variable in the file can be overwritten by external environment variables , For example, server level or system level environment variables .
2、 Be careful Laravel Clear cache php artisan cache:clear A pit of
Laravel The order of php artisan cache:clear Used to clear various caches , Pages such as ,Redis, Configuration file cache , It will empty Redis All data in the database , For example, the default Redis Of database yes db0, Then after executing this command , It will be emptied db0 All data in .
The cache file is located in /bootstrap/cache/cache.php in , It is cached, including .env And other environmental variable data !!
php73 artisan optimize:clear
here , It is recommended to add single point test and log output , It is convenient to locate problems quickly and accurately , It's not a metaphysical monster environmental problem .
边栏推荐
- Dbnet: real time scene text detection with differentiable binarization
- Selenium - by changing the window size, the width, height and length of different models will be different
- Software testing learning - the next day
- dataworks自定義函數開發環境搭建
- Heap sort and priority queue
- How to plan well?
- 每日刷題記錄 (十一)
- Paper notes vsalm literature review "a comprehensive survey of visual slam algorithms"
- Abstract learning
- vmware虚拟机C盘扩容
猜你喜欢

IC_ EDA_ All virtual machine (rich Edition): questasim, vivado, VCs, Verdi, DC, Pt, spyglass, icc2, synthesize, innovative, ic617, mmsim, process library

SQL implementation merges multiple rows of records into one row

卡特兰数(Catalan)的应用场景

多个全局异常处理类,怎么规定执行顺序

Use the jvisualvm tool ----- tocmat to start JMX monitoring

Practical plug-ins in idea

100000 bonus is divided up. Come and meet the "sister who braves the wind and waves" among the winners

2022年华东师范大学计科考研复试机试题-详细题解

The list of "I'm crazy about open source" was released in the first week, with 160 developers on the list

MySQL installation
随机推荐
Paper notes vsalm literature review "a comprehensive survey of visual slam algorithms"
centos php7.2.24升级到php7.3
VMware virtual machine C disk expansion
golang操作redis:写入、读取kv数据
How matlab modifies default settings
Climb movie paradise 2021 hot
What are the characteristics and functions of the scientific thinking mode of mechanical view and system view
Personally design a highly concurrent seckill system
Example of joint use of ros+pytoch (semantic segmentation)
2022 East China Normal University postgraduate entrance examination machine test questions - detailed solution
MySQL transaction rollback, error points record
Class and object summary
EasyExcel
These two mosquito repellent ingredients are harmful to babies. Families with babies should pay attention to choosing mosquito repellent products
The difference between CONDA and pip
每日刷题记录 (十一)
Centos切换安装mysql5.7和mysql8.0
Scroll view specifies the starting position of the scrolling element
Unit test framework + Test Suite
My 2020 summary "don't love the past, indulge in moving forward"