Tag: Yii2
-
Post Views: 16 1. Confirm the Web server user with the following command: , confirm as the WWW user. There are root users and WWW users in the system (web server users) 2. Set the owner of the project directory to root user: 3. Set directory permissions: 755: 4. Set the owner of the runtime directory to the WWW user:…
-
Post Views: 21 1. In Yii2, the SQL generated after the validation rule of the existentiality is written is not as expected. as shown in Figure 1 2. Give up the use of TargetRelation, and use TargetClass and TargetAttribute instead. Generating SQL is as expected.
-
Post Views: 13 1. Reference URL:https://www.shuijingwanwq.com/2020/09/30/4552/, this is a previous blog. 2. When the cluster is deployed, the overall 4 groups of queues are all executed. It can be controlled within half an hour. However, sometimes, the length of time is still uncontrollable, and may even exceed an hour. 3. Decide to print log information in the relevant places in…
-
Post Views: 15 1. When the advanced template is initialized, an error is reported: Error. Directory Frontend/Web/Assets does not exist, as shown in Figure 1 2. Enter the directory in the container: /mcloud/www/channel-pub-api/frontend/web, and determine the directory: /assets does not exist, as shown in Figure 2 3. Analyze the source code, and you can determine the directory: /frontend/web/assets exist, as…
-
Post Views: 61 1. By configuring the additional event processor, edit \environments\dev\common\config\main-local.php, \environments\prod\common\config\main-local.php, as shown in Figure 1 2. Edit \QQ\RESTS\QQ_CW_APP\IndexAction.php, an entry of a push queue 3. Edit \Common\Services\AssetService.php, copy the source resource file to the resource directory published by the channel, after the queue task is successfully executed, call the corresponding service, otherwise, insert the release log (asynchronous)…