当前位置:网站首页>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 .
边栏推荐
- How does the insurance company check hypertension?
- Summary of remote connection of MySQL
- php安装composer
- RestHighLevelClient获取某个索引的mapping
- The pressure of large institutions in the bear market has doubled. Will the giant whales such as gray scale, tether and micro strategy become 'giant thunder'?
- Jmeter+influxdb+grafana of performance tools to create visual real-time monitoring of pressure measurement -- problem record
- Resttemplate configuration use
- Win 10 find the port and close the port
- centos php7.3安装redis扩展
- Opencv mouse and keyboard events
猜你喜欢
这两种驱蚊成份对宝宝有害,有宝宝的家庭,选购驱蚊产品要注意
Reading notes of "learn to ask questions"
10000小時定律不會讓你成為編程大師,但至少是個好的起點
Asynchronous programming: async/await in asp Net
How to migrate or replicate VMware virtual machine systems
Summary of UI module design and practical application of agent mode
Software testing learning - day one
【无标题】
Practice of enterprise ab/testing platform
(翻译)异步编程:Async/Await在ASP.NET中的介绍
随机推荐
php安装composer
VMware virtual machine C disk expansion
The 10000 hour rule won't make you a master programmer, but at least it's a good starting point
Software testing learning - day 3
How matlab modifies default settings
[leetcode] day93 - intersection of two arrays II
Arctic code vault contributor
Unit test framework + Test Suite
centos php7.3安装redis扩展
Getting started with pytest
Asynchronous programming: async/await in asp Net
[untitled]
Heap sort and priority queue
Learning notes -- principles and comparison of k-d tree and IKD tree
In depth analysis of reentrantlock fair lock and unfair lock source code implementation
Selenium - by changing the window size, the width, height and length of different models will be different
[day15] introduce the features, advantages and disadvantages of promise, and how to implement it internally. Implement promise by hand
Modify MySQL password
Derivation of variance iteration formula
Yolov1 learning notes