当前位置:网站首页>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 .
边栏推荐
- Tool class static method calls @autowired injected service
- Climb movie paradise 2021 hot
- How does the insurance company check hypertension?
- [Code] if (list! = null & list. Size() > 0) optimization, set empty judgment implementation method
- golang操作redis:写入、读取kv数据
- SSH link remote server and local display of remote graphical interface
- Thoughts in Starbucks
- Hands on redis master-slave replication, sentinel master-slave switching, cluster sharding
- Machine learning | simple but feature standardization methods that can improve the effect of the model (comparison and analysis of robustscaler, minmaxscaler, standardscaler)
- Pytorch exercise items
猜你喜欢

2022 East China Normal University postgraduate entrance examination machine test questions - detailed solution

这两种驱蚊成份对宝宝有害,有宝宝的家庭,选购驱蚊产品要注意

“我为开源打榜狂”第一周榜单公布,160位开发者上榜

Jmeter+influxdb+grafana of performance tools to create visual real-time monitoring of pressure measurement -- problem record

【类和对象】深入浅出类和对象

golang操作redis:写入、读取hash类型数据

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

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

Daily question brushing record (11)

DBNet:具有可微分二值化的实时场景文本检测
随机推荐
Create your own deep learning environment with CONDA
SSH link remote server and local display of remote graphical interface
2022年华东师范大学计科考研复试机试题-详细题解
“我为开源打榜狂”第一周榜单公布,160位开发者上榜
Reading notes of "learn to ask questions"
Laravel框架 踩坑(一)
Search engine Bing Bing advanced search skills
The essence of interview
Practical plug-ins in idea
Operation principle of lua on C: Foundation
Golang operation redis: write and read kV data
保险公司怎么查高血压?
Paper notes vsalm literature review "a comprehensive survey of visual slam algorithms"
Unit test notes
Laravel Web框架
A letter to graduating college students
JMeter test result output
[LeetCode]404. 左叶子之和
Selenium - by changing the window size, the width, height and length of different models will be different
Personally design a highly concurrent seckill system