Category: Programming Language
-
Post Views: 14 1. When there is an environment variable, the replacement is not performed, the variable in the file /etc/nginx/conf.d/pcs.conf is not replaced, and there is a replacement record in /config/init/change.log, as shown in Figure 1 2. Check the container log, report an error: sed: couldnT open file ww/pcs/build/config.js: No such file or directory 3. pcs_cfg_callback_login=https://cmclogin.chinamcloud.com/login/index?call_back=http://wjdev2.chinamcloud.com:8657/#/topic/add, there is #…
-
Post Views: 29 1. The API can distinguish application/x-www-form-urlencoded and multipart/form-data input formats by default, and view \api\config\main.php, request Configuration of application components 2. POST request in Postman,http://api.github-shuijingwan-yii2-app-advanced.localhost/v1/users, the input format: application/x-www-form-urlencoded, as shown in Figure 1 3. Post request in Postman,http://api.github-shuijingwan-yii2-app-advanced.localhost/v1/users, input format: multipart/form-data, as shown in Figure 2 4. Post request in Postman,http://api.github-shuijingwan-yii2-app-advanced.localhost/v1/users, the input format: application/json, data…
-
Post Views: 15 1, \build\c_files\config\init\config0.sh, replace the shell script of environment variables 2. When upgrading, the system source ID of the parameters uploaded by the CP upload is missing, and the boot container fails, as shown in Figure 1 3. Edit \build\c_files\config\init\config0.sh, and replace the shell script of the environment variable. When an environment variable exists, the replacement operation is…
-
Post Views: 49 1. Since the yiisoft/yii2-composer (2.0.7) cannot be downloaded from dist, now try to download from the source code, the process class depends on proc_open , which is not available in php installation, as shown in Figure 1 2. Edit Dockerfile, delete proc_open, proc_close in disable_functions 3. The previous proc_open and proc_close were also disabled and can be…
-
Post Views: 14 1. Dynamic configuration of database connection in Yii 2 Starter Kit, the configuration attribute comes from the multi-tenant system,https://www.shuijingwanwq.com/2018/01/18/2328/, multi-tenant physical isolation implementation 2. In the public cloud, the system should serve multiple tenants at the same time, and multiple tenants share a database. Therefore, it is necessary to realize the logical isolation of multi-tenancy, that is,…
-
Post Views: 32 1. Based on yii2tech\ar\SoftDelete\SoftDeleteBehavior, the soft deletion of ActiveRecord is realized, and the URL is opened:https://github.com/yiisoft/yii2/blob/master/docs/guide-zh-CN/concept-behaviors.md, as shown in Figure 1 2. Install the ActiveRecord extension of Yii2, use the self-update command to update the composer to the latest version, use the update command to obtain the latest version of the dependencies, and upgrade the composer.lock file,…
-
Post Views: 13 1. View the \build\c_files\config\init\config0.sh file 2. In the Rancher environment variable, the values of pcs_api_cfg_cpu_params_xcontent, pcs_api_cfg_cpu_params_pcs are Chinese, as shown in Figure 1 3. After the upgrade is completed, go to the container to check, and find that the variables in the configuration file have not been replaced, as shown in Figure 2 4. Edit the \build\c_files\config\init\config0.sh…
-
Post Views: 53 1. In the development environment, the execution of the database migration command fails: 1071 Specified key was too long; Max key length is 767 bytes, as shown in Figure 17 2. Run sql in the database in the development environment, and report an error: #1071 – specific key was too long; max key length is 767 bytes,…