Category: Web Application Development
-
Post Views: 17 write in front Recently I tried to use the trae cn editor on Ubuntu 26.04, with the docker container to develop a Go + Gin project (go-gin-learning). The whole process stepped on some pits, but I also ran through a set of workflow that was relatively easy. This article is a complete record, I hope it can…
-
Post Views: 18 Seamlessly migrate from Windows WSL2 to Ubuntu bare metal, build Go development environments based on existing MySQL/Redis containers, and access custom networks. 📌 Preface I have been learning in Windows 10 + WSL2 before go-gin-learning Project, now to brand new Ubuntu 26.04 system. I hope to continue to use Docker to isolate the sending environment, and at…
-
Post Views: 21 1. Receive an email from Google Search Console: the new reason causes the websitehttp://www.shuijingwanwq.com/Web pages on the page cannot be indexed. as shown in Figure 1 2. Open the index preparation report, there are 863 web pages that are not indexed. The reason is that there are 793 web pages that the webpage will automatically redirect. Decided…
-
Post Views: 79 1. Reference:Optimization of List Interface Response Timeout 2. Reference:In Spatie\QueryBuilder, query SQL enforces index 3. However, when the fields in where contain shipping_at_gmt, Shipping_status, operator_user_id, after forcing the combined index is a negative optimization. SQL execution time-consuming sorting is as follows 4. Preliminarily summarize the rules, when the fields in where contain Shipping_at_gmt and Shipping_Status|Shipping_Type|Operated_Source When the…
-
Post Views: 44 1. Reference:Optimization of List Interface Response Timeout . In Spatie\QueryBuilder , query SQL enforces index . achieve the following 2. The generated sql is as follows, in line with expectations. as shown in Figure 1
-
Post Views: 70 1. Reference:Install Hyperf under Docker in WSL-Ubuntu. Now startup fails:[ERROR]RedisException: Connection refused. as shown in Figure 1 2. The hyperf connection redis fails, and the high probability is caused by one of the following three (redis is not started / the address is wrong / the port is not connected). I am now in the local development…
-
Post Views: 107 Step 1: Create a local project directory in WSL (such as ~/wwwroot/hyperf-skeleton) 2. Modify the mount directory and adapt the path to the local directory. Reference:Hyperf official documentation development under Docker . 3. Create a project in the container, the creation of the project fails, and an error is reported: Your requirements could not be resolved to…
-
Post Views: 42 1. Reference: Build a RESTful API (go.dev) with Go and Ginhttps://go.dev/doc/tutorial/web-service-gin— Go official tutorial for building simple web services with GIN. 2. Install Go. Docker Compose One-click startup (refer to Hyperf project). I want to ‘write a good configuration, a command starts the entire development environment’, which is most convenient to use docker-compose.yml, which is almost the…
-
Post Views: 31 Step 1: Create a local project directory in WSL (such as ~/wwwroot/hyperf-skeleton) 2. Modify the mount directory and adapt the path to the local directory. Reference:Hyperf official documentation development under Docker . 3. Create a project in the container, the creation of the project fails, and an error is reported: Your requirements could not be resolved to…
-
Post Views: 29 1. In phpstorm prompt: @property-read . as shown in Figure 1 2. In common/config/main-local.php 3. In yii2, the yii\swiftmailer\mailer component is not set through public properties, but through the setTransport() method. And Yii::$App->Mailer->Transport =[…]It belongs to the direct setting of properties, and phpstorm cannot statically analyze that you are actually calling the setter method indirectly through magic…