Year: 2020
-
Post Views: 15 1. Enter the container that the environment variable has been replaced, a configuration file, which is in line with expectations. as shown in Figure 1 2. Enter a container that has not been replaced with an environment variable, and a configuration file does not meet the expectations. as shown in Figure 2 3. View the logs of…
-
Post Views: 13 1. In Yii 2.0, the realization of health check, a colleague implemented a version before, I feel that it is necessary to adjust it again 2. The analysis code found that yii::$app->db->getisActive() is unnecessary. View the source code of the corresponding method separately. The related implementation of $this->pdo in getIsActive() already exists in open() . 3. Analyze…
-
Post Views: 17 1. In phpstorm prompt: Invalid vcs root mapping. The directory <project>\vendor\wartron\yii2-uuid is registered as a git root, but no git repositories were found there. as shown in Figure 1 2. Click Configure to enter the configuration interface. Discover: Vendor\Wartron\Yii2-UUID is marked red. as shown in Figure 2 3. Reference URL:https://www.shuijingwanwq.com/2020/05/11/4130/. The reason is that the directory is…
-
Post Views: 14 1. Reference URL:https://www.shuijingwanwq.com/2020/07/02/4288/. Previously, the code file could only be placed below: C:\Users\Administrator\Go\Src. Put it in: E:\wwwroot\go\src will report an error. 2. Edit the environment variable – the user variable of Administrator – GOPATH, its original value is: C:\Users\Administrator\Go, create a new: E:\wwwroot\go. Its new value is: C:\Users\Administrator\Go;E:\wwwroot\go. as shown in Figure 1 3. Reference URL:https://github.com/unknwon/the-way-to-go_ZH_CN/blob/master/eBook/09.8.md. Compile…
-
Post Views: 13 1. When building an image in jenkins, an error is reported: repository registry-vpc.cn-beijing.aliyuncs.com/cmc/centos-nginx112-php72 Not found: not not exist or no pull access. as shown in Figure 1 2. Adjust the configuration item, build – execute shell – command, the value of the user name and password needs to be modified. as shown in Figure 2 3. Build…
-
Post Views: 15 1. In Rancher’s volume, add: /webtv:/data. as shown in Figure 1 2. Check the log of the container, and report an error: log_name: unbound variable. as shown in Figure 2 3. Enter the container and view the directory list under /data, which does not meet the expectations. Not mounted successfully. as shown in Figure 3 4. In…
-
Post Views: 14 1. When building an image in Jenkins, an error is reported: fatal: could not read from remote repository. Although the Packagist image address has been switched to Alibaba Cloud:https://mirrors.aliyun.com/composer/. View Dockerfile. as shown in Figure 1 2. I finally decided to add the /vendor directory to the git repository: # /vendor, edit .gitignore 3. Edit the Dockerfile…
-
Post Views: 50 1. The content of the Dockerfile is as follows 2. Since there are directories in the basic image: /sobey/www, and it is a blank directory, it is no longer needed. The basic image cannot be upgraded for a while, so I decided to delete the folder in the Dockerfile: /sobey. as shown in Figure 1 3. Add…