Automatic configuration method and device of application, equipment and medium

By working collaboratively with the server and remote code repository, automated application configuration was achieved, solving the problems of low configuration efficiency, poor accuracy and timeliness, saving human resources, and improving the configuration efficiency and stability of the application.

CN121879862APending Publication Date: 2026-04-17PICC INFORMATION TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
PICC INFORMATION TECH CO LTD
Filing Date
2025-12-29
Publication Date
2026-04-17

AI Technical Summary

Technical Problem

Existing application configuration methods suffer from low configuration efficiency, poor accuracy and timeliness, and high human resource requirements. This is especially true in the context of the surge in the number of microservices and the heterogeneity of deployment environments, which affects the speed of application deployment and operational stability.

Method used

By working collaboratively with the server and remote code repository, the existence of local reference files is detected, a full copy is performed and monitored in real time, a target data request is generated, and the target application on the server is configured based on the local reference files and the target configuration file, thus achieving automated configuration.

Benefits of technology

It improved the efficiency of application configuration, ensured the accuracy and timeliness of configuration, saved human resources, and improved the speed of application deployment and operational stability.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121879862A_ABST
    Figure CN121879862A_ABST
Patent Text Reader

Abstract

The invention discloses an automatic configuration method and device of an application, equipment and a medium. The method executed by the server comprises the following steps: detecting whether a local reference file exists in a local storage of the server; after it is detected that the local reference file does not exist, full-quantity copying is conducted on the target configuration file in the remote code warehouse, and the local reference file is obtained; a target configuration file in the remote code warehouse is monitored in real time, and after it is monitored that the target configuration file is updated, a target data request is generated and sent to the remote code warehouse; and in response to receiving of the target configuration file, configuring a target application of the server based on the local reference file and the target configuration file. By means of the technical scheme, automatic configuration of the application can be achieved, the configuration efficiency of the application is improved, the accuracy and timeliness of application configuration are guaranteed, and human resources are saved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of distributed systems, and more particularly to an automated configuration method, apparatus, device, and medium for applications. Background Technology

[0002] With the deepening of digital transformation, microservices and multi-cloud deployment have become mainstream architectural trends. Applications need to adapt to the dynamic deployment requirements of multiple environments and clusters, significantly increasing the complexity of configuration management. Traditional application configuration relies on manual operations. Deploying in different operating environments requires developers to sort out configuration changes one by one. This is not only cumbersome and consumes a lot of human resources, but it is also very easy to cause problems such as inconsistent configurations and incorrect parameters across environments due to human error, which directly affects the efficiency of application launch and operational stability.

[0003] To address the drawbacks of manual configuration, continuous integration and continuous deployment automation tools have emerged. However, these tools generally employ a push-based deployment model, which still has significant shortcomings: They require the installation of additional configuration auxiliary tools and multi-layered authorization to container clusters and platforms, resulting in lengthy and complex configuration processes and low efficiency. Furthermore, this model cannot proactively perceive the actual state of the application after deployment, making it difficult to detect deviations between the expected configuration and the running state in real time. Additional resources are needed for consistency verification, further impacting configuration accuracy. Moreover, existing automation solutions have shortcomings in version control; the transmission and synchronization of configuration changes are not timely, making it difficult to adapt to the needs of multi-version iterations of microservices and dynamic adjustments in multi-cloud environments, compromising configuration timeliness. With the surge in the number of microservices and the heterogeneity of deployment environments, these problems become increasingly prominent: the low efficiency, inaccuracy, and timeliness of application configuration directly restrict the speed of application deployment and operational stability; and the complex configuration processes, authorization operations, and deviation troubleshooting require continuous and substantial investment of human resources for maintenance.

[0004] In summary, existing application configuration methods suffer from low configuration efficiency, poor accuracy and timeliness, and high human resource requirements. Summary of the Invention

[0005] This invention provides an automated configuration method, apparatus, device, and medium for applications, which can solve the problems of low configuration efficiency, poor accuracy and timeliness of application configuration, and high demand for human resources in existing application configuration methods.

[0006] In a first aspect, embodiments of the present invention provide an automated configuration method for an application, executed by a server, the method comprising:

[0007] Check if a local reference file exists in the server's local storage;

[0008] After detecting that the local reference file does not exist, the target configuration file in the remote code repository is copied in its entirety to obtain the local reference file;

[0009] The system monitors the target configuration file in the remote code repository in real time, and generates a target data request and sends it to the remote code repository after detecting that the target configuration file has been updated.

[0010] In response to receiving the target configuration file, the server configures the target application based on the local reference file and the target configuration file.

[0011] Secondly, embodiments of the present invention provide an automated configuration method for an application, executed by a remote code repository, the method comprising:

[0012] In response to the user's configuration file upload operation, the target configuration file of the target application is received;

[0013] In response to a user's modification of the target configuration file, the target configuration file is updated;

[0014] After receiving the target data request from the server, the updated target configuration file is sent to the server.

[0015] Thirdly, embodiments of the present invention provide an automated configuration device for an application, executed by a server, the device comprising:

[0016] The file detection module is used to detect whether a local reference file exists in the local storage of the server;

[0017] The file copy module is used to perform a full copy of the target configuration file in the remote code repository after detecting that the local reference file does not exist, so as to obtain the local reference file.

[0018] The file monitoring module is used to monitor the target configuration file in the remote code repository in real time, and generate a target data request and send it to the remote code repository after monitoring that the target configuration file has been updated.

[0019] The application configuration module is used to respond to the receipt of the target configuration file and configure the target application on the server based on the local reference file and the target configuration file.

[0020] Fourthly, embodiments of the present invention provide an automated configuration device for an application, executed by a remote code repository, the device comprising:

[0021] The file upload module is used to respond to the user's configuration file upload operation and receive the target configuration file of the target application.

[0022] The file modification module is used to update the target configuration file in response to the user's modification operation on the target configuration file;

[0023] The file sending module is used to send the updated target configuration file to the server after receiving a target data request from the server.

[0024] Fifthly, embodiments of the present invention provide an electronic device, the electronic device comprising:

[0025] At least one processor; and

[0026] A memory communicatively connected to the at least one processor; wherein,

[0027] The memory stores a computer program that can be executed by the at least one processor, the computer program being executed by the at least one processor to enable the at least one processor to perform an automated configuration method for an application as described in any embodiment of the present invention.

[0028] In a sixth aspect, embodiments of the present invention provide a computer-readable storage medium storing computer instructions that, when executed by a processor, implement an automated configuration method for an application as described in any embodiment of the present invention.

[0029] The technical solution of this invention, in response to a user's configuration file upload operation, receives the target configuration file of the target application in a remote code repository, and updates the target configuration file in response to the user's modification operation. After receiving a target data request from the server, the updated target configuration file is sent to the server. Then, the server checks whether a local reference file exists in its local storage. If no local reference file is detected, the target configuration file in the remote code repository is fully copied to obtain a local reference file. Subsequently, the target configuration file in the remote code repository is monitored in real time, and when an update is detected, a target data request is generated and sent to the remote code repository. Finally, in response to the receipt of the target configuration file, the target application on the server is configured based on the local reference file and the target configuration file. This solves the problems of low application configuration efficiency, poor accuracy and timeliness of application configuration, and high human resource requirements in existing application configuration methods. It realizes automated application configuration, improves application configuration efficiency, ensures the accuracy and timeliness of application configuration, and saves human resources.

[0030] It should be understood that the description in this section is not intended to identify key or essential features of the embodiments of the present invention, nor is it intended to limit the scope of the invention. Other features of the invention will become readily apparent from the following description. Attached Figure Description

[0031] To more clearly illustrate the technical solutions in the embodiments of the present invention, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0032] Figure 1 This is a flowchart of an automated configuration method for an application provided according to Embodiment 1 of the present invention;

[0033] Figure 2 This is a flowchart of an automated configuration method for an application provided according to Embodiment 2 of the present invention;

[0034] Figure 3 This is a schematic diagram of the structure of an automated configuration device according to Embodiment 3 of the present invention;

[0035] Figure 4 This is a schematic diagram of the structure of an automated configuration device according to Embodiment 4 of the present invention;

[0036] Figure 5 This is a schematic diagram of the structure of an electronic device that implements an automated configuration method for one application of an embodiment of the present invention. Detailed Implementation

[0037] To enable those skilled in the art to better understand the present invention, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings of the embodiments of the present invention. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort should fall within the scope of protection of the present invention.

[0038] It should be noted that the terms "first," "second," etc., in the specification, claims, and accompanying drawings of this invention are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that the embodiments of the invention described herein can be implemented in orders other than those illustrated or described herein. Furthermore, any variations of the terms "comprising" and "having" are intended to cover a non-exclusive inclusion; for example, a process, method, system, product, or apparatus that comprises a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to such processes, methods, products, or apparatus.

[0039] Example 1

[0040] Figure 1 This is a flowchart of an automated configuration method for an application provided in Embodiment 1 of the present invention. This embodiment is applicable to situations where an application is automatically configured using a server. The method can be executed by an automated configuration device for the application, which can be implemented in hardware and / or software. The automated configuration device for the application can be configured in a server that has automated configuration functionality for the application.

[0041] like Figure 1 As shown, the method includes:

[0042] S110. Check if a local reference file exists in the local storage of the server.

[0043] The reference file refers to the benchmark file used for synchronous comparison with the target configuration file in the remote code repository.

[0044] S120. After detecting that the local reference file does not exist, the target configuration file in the remote code repository is copied in full to obtain the local reference file.

[0045] In this embodiment, the remote code repository can specifically be a Git repository; wherein, the Git repository is used to centrally store all code files, configuration files and related resources of the project, and to fully record every modification in the process of the project from creation to iteration, forming a traceable version history.

[0046] The specific steps for fully copying the target configuration file from the remote code repository to obtain a local reference file are as follows: First, establish a connection with the remote code repository through secure repository access protocols such as HTTPS and SSH. After completing authentication and permission verification, locate the preset target configuration file in the remote repository, and then perform a full copy operation on the file. During the copying process, the file format legality, data integrity, and file size consistency are verified in real time to avoid file corruption due to network transmission abnormalities or storage errors, ensuring that the copied file is completely consistent with the remote source file. The copied file is the local reference file required for the subsequent synchronization process and is stored in the specified directory of local storage.

[0047] S130. Monitor the target configuration file in the remote code repository in real time, and after detecting that the target configuration file has been updated, generate a target data request and send it to the remote code repository.

[0048] The real-time monitoring can specifically be achieved by using techniques such as timed polling or event-driven methods to continuously obtain key status information of the target configuration file, including file modification timestamps, version numbers, data verification values, etc. The specific implementation method and monitoring standards of the real-time monitoring can be set and adjusted by the user according to the actual implementation scenario, and this embodiment does not limit this.

[0049] S140. In response to receiving the target configuration file, configure the target application on the server based on the local reference file and the target configuration file.

[0050] In response to receiving the target configuration file, the target application on the server is configured based on the local reference file and the target configuration file, including: generating a complete configuration file matching the target application based on the target configuration file and the local reference file; and performing automated configuration operations on the target application according to the complete configuration file, wherein the automated configuration operations include at least one of application deployment, version upgrade, and environment parameter settings.

[0051] Furthermore, generating a complete configuration file matching the target application based on the target configuration file and the local reference file includes: comparing the differences between the target configuration file and the local reference file to obtain the target incremental content; merging the target incremental content with the local reference file to generate the complete configuration file corresponding to the target application.

[0052] Specifically, a complete configuration file matching the target application is generated based on the target configuration file and local reference files. An incremental update mechanism is used to achieve efficient configuration integration. The specific process is as follows: First, the configuration difference comparison module is started, and Git diff is used. The core algorithm or dedicated configuration comparison tool performs a deep comparison of each configuration item between the target configuration file and the local reference file. This identifies newly added configuration items (such as newly added third-party service integration parameters), modified configuration values ​​(such as adjusted database connection timeouts), and deleted redundant configuration items (such as obsolete old version interface addresses) in the target configuration file, forming structured target incremental content. This target incremental content records key information such as difference type, configuration path, and comparison of old and new values ​​in key-value pairs. Then, the target incremental content is automatically integrated with the local reference file. New configuration items are directly appended to the corresponding configuration node, modified configuration items are overwritten with the old values ​​in the local reference file by the values ​​in the target configuration file, and deleted redundant configuration items are removed from the local reference file. At the same time, potential configuration conflicts are handled (when configuration items with the same name are modified in both files, the target configuration file is used by default; in special scenarios, conflict resolution strategies can be customized through preset rules). Finally, a complete configuration file covering the entire lifecycle of the target application is generated.

[0053] Furthermore, after generating the complete configuration file, the automated configuration operation will be executed according to a preset process: In the case of application deployment, containerized deployment technology will be used to inject the complete configuration file into the application container, automatically completing deployment operations such as port mapping, dependent component mounting, and service registration; In the case of version upgrade, a canary release strategy will be adopted, first applying the new configuration to some test nodes and verifying service availability, and then gradually covering all production nodes after confirming that there are no anomalies, avoiding service interruption caused by a full upgrade; In the case of environment parameter settings, the environment parameters in the complete configuration file will be pushed to the target application in real time through a dynamic configuration center (such as Nacos or Apollo dynamic configuration platform). The application process will detect parameter changes through a configuration listening mechanism, and the parameters will take effect without restarting.

[0054] Those skilled in the art should understand that configuring an application based on a configuration file is a mature existing technology. This embodiment only introduces its steps and flow, without going into detail about its specific principles and implementation methods.

[0055] Optionally, after performing automated configuration operations on the target application based on the complete configuration file, the method further includes: updating the local reference file to the complete configuration file, generating configuration prompts, and displaying them visually.

[0056] Optionally, in response to receiving the target configuration file, after configuring the target application on the server based on the local reference file and the target configuration file, the method further includes: obtaining the configured state of the target application and the preset expected state, and comparing the configured state with the expected state; if the configured state is inconsistent with the expected state, then correcting the state of the target application based on the complete configuration file; returning to the operation of obtaining the configured state of the target application and the preset expected state, and comparing the configured state with the expected state, until a preset termination condition is met.

[0057] The preset termination condition can be that the configured state is consistent with the expected state, or that the number of executions reaches a preset loop threshold to generate an error message.

[0058] Optionally, in this embodiment, if the number of times the return execution reaches a preset loop threshold or the total time exceeds a timeout threshold and the desired state is still not achieved, the correction is determined to have failed. The system triggers an emergency alarm (such as an SMS or DingTalk alarm) and automatically performs a configuration rollback operation to restore the system to the stable state before the configuration update. At the same time, the failure details are recorded for maintenance personnel to troubleshoot the problem.

[0059] The technical solution of this invention involves the server detecting the existence of a local reference file in its local storage. If the absence of a local reference file is detected, the target configuration file in the remote code repository is fully copied to obtain the local reference file. The target configuration file in the remote code repository is then monitored in real time. Upon detecting an update to the target configuration file, a target data request is generated and sent to the remote code repository. Finally, in response to the receipt of the target configuration file, the target application on the server is configured based on the local reference file and the target configuration file. This achieves automated application configuration, improves application configuration efficiency, ensures the accuracy and timeliness of application configuration, and saves human resources.

[0060] Example 2

[0061] Figure 2 This is a flowchart of an automated configuration method for an application provided in Embodiment 2 of the present invention. This embodiment is applicable to the situation of automating the configuration of an application using a remote code repository. The method can be executed by an automated configuration device for the application, which can be implemented in hardware and / or software. The automated configuration device for the application can be configured in a remote code repository with automated configuration functionality for the application.

[0062] like Figure 2 As shown, the method includes:

[0063] S210, In response to the user's configuration file upload operation, receive the target configuration file of the target application.

[0064] S220. In response to the user's modification operation of the target configuration file, update the target configuration file.

[0065] S230. After receiving the target data request sent by the server, send the updated target configuration file to the server.

[0066] The technical solution of this invention, in response to a user's configuration file upload operation via a remote code repository, receives the target configuration file of the target application and updates the target configuration file in response to the user's modification operation. After receiving a target data request from the server, the updated target configuration file is sent to the server. This solves the problems of low application configuration efficiency, poor accuracy and timeliness of application configuration, and high human resource requirements in existing application configuration methods. It realizes automated application configuration, improves application configuration efficiency, ensures the accuracy and timeliness of application configuration, and saves human resources.

[0067] Example 3

[0068] Figure 3 This is a schematic diagram of the structure of an automated configuration device for an application provided in Embodiment 3 of the present invention. Figure 3 As shown, the device includes:

[0069] The file detection module 310 is used to detect whether a local reference file exists in the local storage of the server;

[0070] The file copying module 320 is used to perform a full copy of the target configuration file in the remote code repository after detecting that the local reference file does not exist, so as to obtain the local reference file;

[0071] The file monitoring module 330 is used to monitor the target configuration file in the remote code repository in real time, and after monitoring that the target configuration file has been updated, it generates a target data request and sends it to the remote code repository.

[0072] Application configuration module 340 is used to configure the target application on the server based on the local reference file and the target configuration file in response to the receipt of the target configuration file.

[0073] The technical solution of this invention involves the server detecting the existence of a local reference file in its local storage. If the absence of a local reference file is detected, the target configuration file in the remote code repository is fully copied to obtain the local reference file. The target configuration file in the remote code repository is then monitored in real time. Upon detecting an update to the target configuration file, a target data request is generated and sent to the remote code repository. Finally, in response to the receipt of the target configuration file, the target application on the server is configured based on the local reference file and the target configuration file. This achieves automated application configuration, improves application configuration efficiency, ensures the accuracy and timeliness of application configuration, and saves human resources.

[0074] Based on the above embodiments, the application configuration module 340 includes:

[0075] A complete file generation unit is used to generate a complete configuration file that matches the target application based on the target configuration file and a local reference file.

[0076] An automated configuration unit is used to perform automated configuration operations on the target application according to the complete configuration file. The automated configuration operations include at least one of application deployment, version upgrade, and environment parameter settings.

[0077] Based on the above embodiments, the complete file generation unit includes:

[0078] The difference comparison unit is used to compare the target configuration file with the local reference file to obtain the target incremental content.

[0079] The file merging unit is used to merge the target incremental content with the local reference file to generate a complete configuration file corresponding to the target application.

[0080] Based on the above embodiments, the automated configuration unit is further configured to: after performing automated configuration operations on the target application according to the complete configuration file, update the local reference file to the complete configuration file, generate configuration prompts, and perform visual display.

[0081] Based on the above embodiments, the application configuration module 340 is further configured to: in response to receiving the target configuration file, configure the target application on the server based on the local reference file and the target configuration file, obtain the configured state of the target application and the preset expected state, and compare the configured state with the expected state; if the configured state is inconsistent with the expected state, correct the state of the target application based on the complete configuration file; return to the operation of obtaining the configured state of the target application and the preset expected state, and comparing the configured state with the expected state, until the preset termination condition is met.

[0082] The automated configuration device for an application provided in this embodiment of the invention can execute the automated configuration method for an application provided in any embodiment of the invention, and has the corresponding functional modules and beneficial effects of executing the method.

[0083] Example 4

[0084] Figure 4 This is a schematic diagram of the structure of an automated configuration device for an application provided in Embodiment 4 of the present invention. Figure 4 As shown, the device includes:

[0085] The file upload module 410 is used to receive the target configuration file of the target application in response to the user's configuration file upload operation;

[0086] The file modification module 420 is used to update the target configuration file in response to the user's modification operation on the target configuration file;

[0087] The file sending module 430 is used to send the updated target configuration file to the server after receiving the target data request sent by the server.

[0088] The technical solution of this invention, in response to a user's configuration file upload operation via a remote code repository, receives the target configuration file of the target application and updates the target configuration file in response to the user's modification operation. After receiving a target data request from the server, the updated target configuration file is sent to the server. This solves the problems of low application configuration efficiency, poor accuracy and timeliness of application configuration, and high human resource requirements in existing application configuration methods. It realizes automated application configuration, improves application configuration efficiency, ensures the accuracy and timeliness of application configuration, and saves human resources.

[0089] Example 5

[0090] Figure 5 A schematic diagram of an electronic device 10, which can be used to implement embodiments of the present invention, is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processors, cellular phones, smartphones, wearable devices (e.g., helmets, glasses, watches, etc.), and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely illustrative and are not intended to limit the implementation of the invention described and / or claimed herein.

[0091] like Figure 5 As shown, the electronic device 10 includes at least one processor 11 and a memory, such as a read-only memory (ROM) 12 or a random access memory (RAM) 13, communicatively connected to the at least one processor 11. The memory stores computer programs executable by the at least one processor. The processor 11 can perform various appropriate actions and processes based on the computer program stored in the ROM 12 or loaded from storage unit 18 into the RAM 13. The RAM 13 can also store various programs and data required for the operation of the electronic device 10. The processor 11, ROM 12, and RAM 13 are interconnected via a bus 14. An input / output (I / O) interface 15 is also connected to the bus 14.

[0092] Multiple components in electronic device 10 are connected to I / O interface 15, including: input unit 16, such as keyboard, mouse, etc.; output unit 17, such as various types of displays, speakers, etc.; storage unit 18, such as disk, optical disk, etc.; and communication unit 19, such as network card, modem, wireless transceiver, etc. Communication unit 19 allows electronic device 10 to exchange information / data with other devices through computer networks such as the Internet and / or various telecommunications networks.

[0093] Processor 11 can be a variety of general-purpose and / or special-purpose processing components with processing and computing capabilities. Some examples of processor 11 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various special-purpose artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, a digital signal processor (DSP), and any suitable processor, controller, microcontroller, etc. Processor 11 performs the various methods and processes described above, such as an automated configuration method for an application.

[0094] Accordingly, the method executed by the server includes:

[0095] Check if a local reference file exists in the server's local storage;

[0096] After detecting that the local reference file does not exist, the target configuration file in the remote code repository is copied in its entirety to obtain the local reference file;

[0097] The system monitors the target configuration file in the remote code repository in real time, and generates a target data request and sends it to the remote code repository after detecting that the target configuration file has been updated.

[0098] In response to receiving the target configuration file, the server configures the target application based on the local reference file and the target configuration file.

[0099] In some embodiments, an automated configuration method for an application may be implemented as a computer program tangibly contained in a computer-readable storage medium, such as storage unit 18. In some embodiments, part or all of the computer program may be loaded and / or installed on electronic device 10 via ROM 12 and / or communication unit 19. When the computer program is loaded into RAM 13 and executed by processor 11, one or more steps of the automated configuration method for an application described above may be performed. Alternatively, in other embodiments, processor 11 may be configured to perform an automated configuration method for an application by any other suitable means (e.g., by means of firmware).

[0100] Various embodiments of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field-programmable gate arrays (FPGAs), application-specific integrated circuits (ASICs), application-specific standard products (ASSPs), systems-on-a-chip (SoCs), payload-programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various embodiments may include implementations in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which may be a dedicated or general-purpose programmable processor, capable of receiving data and instructions from a storage system, at least one input device, and at least one output device, and transmitting data and instructions to the storage system, the at least one input device, and the at least one output device.

[0101] Computer programs used to implement the methods of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, such that when executed by the processor, the computer programs cause the functions / operations specified in the flowcharts and / or block diagrams to be performed. The computer programs may be executed entirely on a machine, partially on a machine, or as a standalone software package, partially on a machine and partially on a remote machine, or entirely on a remote machine or server.

[0102] In the context of this invention, a computer-readable storage medium can be a tangible medium that may contain or store a computer program for use by or in conjunction with an instruction execution system, apparatus, or device. A computer-readable storage medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, apparatus, or devices, or any suitable combination thereof. Alternatively, a computer-readable storage medium may be a machine-readable signal medium. More specific examples of machine-readable storage media include electrical connections based on one or more wires, portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fibers, portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination thereof.

[0103] To provide interaction with a user, the systems and techniques described herein can be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and pointing device (e.g., a mouse or trackball) through which the user provides input to the electronic device. Other types of devices can also be used to provide interaction with the user; for example, feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including sound input, voice input, or tactile input).

[0104] The systems and technologies described herein can be implemented in computing systems that include backend components (e.g., as data servers), or middleware components (e.g., application servers), or frontend components (e.g., user computers with graphical user interfaces or web browsers through which users can interact with implementations of the systems and technologies described herein), or any combination of such backend, middleware, or frontend components. The components of the system can be interconnected via digital data communication of any form or medium (e.g., communication networks). Examples of communication networks include local area networks (LANs), wide area networks (WANs), blockchain networks, and the Internet.

[0105] A computing system can include clients and servers. Clients and servers are generally located far apart and typically interact through communication networks. The client-server relationship is created by computer programs running on the respective computers and having a client-server relationship with each other. The server can be a cloud server, also known as a cloud computing server or cloud host, which is a hosting product within the cloud computing service system to address the shortcomings of traditional physical hosts and VPS services, such as high management difficulty and weak business scalability.

[0106] It should be understood that the various forms of processes shown above can be used, with steps reordered, added, or deleted. For example, the steps described in this invention can be executed in parallel, sequentially, or in different orders, as long as the desired result of the technical solution of this invention can be achieved, and this is not limited herein.

Claims

1. An automated configuration method for an application, executed by a server, characterized in that, include: Check if a local reference file exists in the server's local storage; After detecting that the local reference file does not exist, the target configuration file in the remote code repository is copied in its entirety to obtain the local reference file; The system monitors the target configuration file in the remote code repository in real time, and generates a target data request and sends it to the remote code repository after detecting that the target configuration file has been updated. In response to receiving the target configuration file, the server configures the target application based on the local reference file and the target configuration file.

2. The method according to claim 1, characterized in that, In response to receiving the target configuration file, the server-side target application is configured based on the local reference file and the target configuration file, including: Generate a complete configuration file that matches the target application based on the target configuration file and the local reference file; Automated configuration operations are performed on the target application based on the complete configuration file. The automated configuration operations include at least one of application deployment, version upgrade, and environment parameter settings.

3. The method according to claim 2, characterized in that, Based on the target configuration file and the local reference file, a complete configuration file matching the target application is generated, including: The target configuration file is compared with the local reference file to obtain the target incremental content; The target incremental content is merged with the local reference file to generate a complete configuration file corresponding to the target application.

4. The method according to claim 2, characterized in that, After performing automated configuration operations on the target application based on the complete configuration file, the process also includes: The local reference file is updated to the complete configuration file, and configuration prompts are generated and displayed visually.

5. The method according to any one of claims 1-2, characterized in that, In response to receiving the target configuration file, after configuring the target application on the server based on the local reference file and the target configuration file, the following also includes: Obtain the configured state and the preset desired state of the target application, and compare the configured state with the desired state; If the configured state is inconsistent with the expected state, the target application's state is corrected based on the complete configuration file. Return to the operation of obtaining the configured state and the preset expected state of the target application, and comparing the configured state with the expected state, until the preset termination condition is met.

6. An automated configuration method for an application, executed by a remote code repository, characterized in that, include: In response to the user's configuration file upload operation, the target configuration file of the target application is received; In response to a user's modification of the target configuration file, the target configuration file is updated; After receiving the target data request from the server, the updated target configuration file is sent to the server.

7. An automated configuration device for an application, executed by a server, characterized in that, include: The file detection module is used to detect whether a local reference file exists in the local storage of the server; The file copy module is used to perform a full copy of the target configuration file in the remote code repository after detecting that the local reference file does not exist, so as to obtain the local reference file. The file monitoring module is used to monitor the target configuration file in the remote code repository in real time, and generate a target data request and send it to the remote code repository after monitoring that the target configuration file has been updated. The application configuration module is used to respond to the receipt of the target configuration file and configure the target application on the server based on the local reference file and the target configuration file.

8. An automated configuration device for an application, executed by a remote code repository, characterized in that, include: The file upload module is used to respond to the user's configuration file upload operation and receive the target configuration file of the target application. The file modification module is used to update the target configuration file in response to the user's modification operation on the target configuration file; The file sending module is used to send the updated target configuration file to the server after receiving a target data request from the server.

9. An electronic device, characterized in that, The electronic device includes: At least one processor; and A memory communicatively connected to the at least one processor; wherein, The memory stores a computer program that can be executed by the at least one processor to enable the at least one processor to perform an automated configuration method for an application according to any one of claims 1-7.

10. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer instructions that, when executed by a processor, implement an automated configuration method for an application according to any one of claims 1-7.