当前位置:网站首页>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 .
边栏推荐
- File links cannot be opened or downloaded in Google browser
- Realize PDF to picture conversion with C #
- 【code】if (list != null && list.size() > 0)优化,集合判空实现方式
- Software testing learning - day one
- The essence of interview
- Reading notes of "learn to ask questions"
- php artisan
- 2022 cisp-pte (III) command execution
- [vscode - vehicle plug-in reports an error] cannot find module 'xxx' or its corresponding type declarations Vetur(2307)
- Architecture notes
猜你喜欢
【无标题】
Software testing assignment - the next day
dataworks自定义函数开发环境搭建
2022 - 06 - 23 vgmp - OSPF - Inter - Domain Security Policy - nat Policy (Update)
VMware virtual machine C disk expansion
Summary of UI module design and practical application of agent mode
Use the jvisualvm tool ----- tocmat to start JMX monitoring
The 10000 hour rule won't make you a master programmer, but at least it's a good starting point
Software testing learning - day one
EasyExcel
随机推荐
Jenkins
What are the characteristics and functions of the scientific thinking mode of mechanical view and system view
Centos切换安装mysql5.7和mysql8.0
File links cannot be opened or downloaded in Google browser
Yolov1 learning notes
How can I split a string at the first occurrence of “-” (minus sign) into two $vars with PHP?
Practical plug-ins in idea
POI excel percentage
熊市里的大机构压力倍增,灰度、Tether、微策略等巨鲸会不会成为'巨雷'?
RestHighLevelClient获取某个索引的mapping
Software testing learning - the next day
[LeetCode]404. Sum of left leaves
10000小時定律不會讓你成為編程大師,但至少是個好的起點
How does the insurance company check hypertension?
Arctic code vault contributor
[C /vb.net] convert PDF to svg/image, svg/image to PDF
In depth analysis of reentrantlock fair lock and unfair lock source code implementation
Modify MySQL password
Software testing learning - day one
(翻译)异步编程:Async/Await在ASP.NET中的介绍