Configuration file deployment method, system and device, storage medium and electronic equipment

By configuring the platform to uniformly deploy application configuration files on electronic devices, the problems of low deployment efficiency and high cost in the existing technology are solved, and efficient and low-cost configuration file deployment is achieved.

CN119847626APending Publication Date: 2025-04-18GUANGZHOU LEICHEN INTELLIGENT EQUIP TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311815834.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-12-26
Publication Date
2025-04-18

AI Technical Summary

Technical Problem

In the prior art, experienced operators are required to manually deploy the application configuration files, resulting in low deployment efficiency and high cost.

Method used

Through the configuration platform, the configuration file of each application on different electronic devices is uniformly deployed, the configuration file editing page is displayed, the configuration file deployment instructions are generated, and the instructions are sent to the target application according to the target application identifier.

Benefits of technology

Improves configuration file deployment efficiency and reduces costs, and does not require experienced operators to log in to each device manually deployed one by one.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119847626A_ABST
    Figure CN119847626A_ABST
Patent Text Reader

Abstract

The embodiment of the invention provides a configuration file deployment method, system and device, a storage medium and electronic equipment, and the method comprises the steps: displaying a configuration file editing page; a plurality of first configuration files are displayed on the configuration file editing page; the plurality of first configuration files are configuration files of each application on each electronic device; in response to a trigger operation on one or more target configuration files on the configuration file editing page, generating a configuration file deployment instruction corresponding to each target configuration file; wherein the target configuration file is a configuration file selected from a plurality of first configuration files; determining a target application identifier of a target application where each target configuration file is located; and according to the target application identifier, each configuration file deployment instruction is sent to the corresponding target application to deploy the first configuration file of the target application, so that the deployment efficiency of the configuration file is improved, and the cost is reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present application relate to the field of computer technology, and in particular, to a configuration file deployment method, system, device, storage medium, and electronic device. Background Art

[0002] With the continuous development of the Internet, there are more and more applications, and correspondingly, there are more and more configuration files for applications. In order to make applications meet the changes in business needs, configuration files are generally deployed in applications. For example, configuration items are set in the configuration file, and the changes in business needs are met by modifying the configuration items in the configuration file.

[0003] However, in the related art, experienced operators are required to manually deploy application configuration files one by one, resulting in low efficiency and high cost in deploying configuration files. Summary of the invention

[0004] In order to overcome the problems existing in the related art, the present application provides a configuration file deployment method, system, device, storage medium and electronic device, which can improve the deployment efficiency of the configuration file and reduce the cost.

[0005] According to a first aspect of an embodiment of the present application, a configuration file deployment method is provided, which is applied to a configuration platform; the configuration platform is connected to a plurality of electronic devices, each of which is installed with a plurality of applications; the method comprises the following steps:

[0006] Displaying a configuration file editing page; the configuration file editing page displays a plurality of first configuration files; the plurality of first configuration files are configuration files of respective applications on respective electronic devices;

[0007] In response to a trigger operation on one or more target configuration files on a configuration file editing page, a configuration file deployment instruction corresponding to each target configuration file is generated; wherein the target configuration file is a configuration file selected from a plurality of first configuration files;

[0008] Determine the target application identifier of the target application where each target configuration file is located;

[0009] According to the target application identifier, each configuration file deployment instruction is sent to the corresponding target application to deploy the first configuration file of the target application.

[0010] According to a second aspect of an embodiment of the present application, a configuration file deployment system is provided, including a configuration platform and several electronic devices; the configuration platform is connected to the several electronic devices, each of which is installed with several applications;

[0011] The configuration platform displays a configuration file editing page; the configuration file editing page displays a plurality of first configuration files; the plurality of first configuration files are configuration files of various applications on various electronic devices;

[0012] The configuration platform generates configuration file deployment instructions corresponding to each target configuration file in response to a trigger operation on one or more target configuration files on a configuration file editing page; wherein the target configuration file is a configuration file selected from a plurality of first configuration files;

[0013] The configuration platform determines the target application identifier of the target application where each target configuration file is located;

[0014] The configuration platform sends each configuration file deployment instruction to the corresponding target application according to the target application identifier;

[0015] The target application deploys the first configuration file of the target application according to the configuration file deployment instruction.

[0016] According to a third aspect of an embodiment of the present application, a configuration file deployment device is provided, including:

[0017] An editing page display module is used to display a configuration file editing page; the configuration file editing page displays a plurality of first configuration files; the plurality of first configuration files are configuration files of various applications on various electronic devices;

[0018] A deployment instruction generation module, configured to generate configuration file deployment instructions corresponding to each target configuration file in response to a trigger operation on one or more target configuration files on a configuration file editing page; wherein the target configuration file is a configuration file selected from a plurality of first configuration files;

[0019] A target application identification determination module, used to determine the target application identification of the target application where each target configuration file is located;

[0020] The deployment instruction sending module is used to send each configuration file deployment instruction to the corresponding target application according to the target application identifier, so as to deploy the first configuration file of the target application.

[0021] According to a fourth aspect of an embodiment of the present application, there is provided an electronic device, including a display, a processor and a memory; the memory stores a computer program, and the computer program is suitable for being loaded by the processor and executing the deployment method of the configuration file as described above.

[0022] According to a fifth aspect of an embodiment of the present application, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the configuration file deployment method as described above is implemented.

[0023] The embodiment of the present application displays a configuration file editing page; the configuration file editing page displays a number of first configuration files; the number of first configuration files are configuration files of each application on each electronic device; in response to a trigger operation on one or more target configuration files on the configuration file editing page, configuration file deployment instructions corresponding to each target configuration file are generated; wherein the target configuration file is a configuration file selected from the number of first configuration files; the target application identifier of the target application where each target configuration file is located is determined; according to the target application identifier, each configuration file deployment instruction is sent to the corresponding target application to deploy the first configuration file of the target application. The embodiment of the present application uniformly deploys configuration files of each application on different electronic devices through a configuration platform, without the need for experienced operators to log in to each device and manually deploy application configuration files one by one, thereby improving the deployment efficiency of configuration files and reducing costs.

[0024] It should be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present application.

[0025] For better understanding and implementation, the present invention is described in detail below with reference to the accompanying drawings. BRIEF DESCRIPTION OF THE DRAWINGS

[0026] Figure 1 A flowchart of a configuration file deployment method shown in one embodiment of the present application;

[0027] Figure 2 This is a flowchart of step S10 in a configuration file deployment method according to an embodiment of the present application;

[0028] Figure 3 This is a flowchart of step S40 in a method for deploying a configuration file according to an embodiment of the present application;

[0029] Figure 4 A schematic block diagram of the structure of a configuration file deployment system shown in one embodiment of the present application;

[0030] Figure 5 This is a schematic block diagram of the structure of a configuration file deployment device shown in one embodiment of the present application;

[0031] Figure 6 The present invention is a block diagram showing the structure of an electronic device according to an embodiment of the present application. DETAILED DESCRIPTION

[0032] In order to make the objectives, technical solutions and advantages of the present application more clear, the embodiments of the present application will be further described in detail below with reference to the accompanying drawings.

[0033] It should be clear that the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the embodiments of the present application.

[0034] When the following description relates to the accompanying drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. In the description of the present application, it should be understood that the terms "first", "second", "third", etc. are only used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence, nor can they be understood as indicating or implying relative importance. For those of ordinary skill in the art, the specific meanings of the above terms in the present application can be understood according to the specific circumstances. The singular forms of "a", "said" and "the" used in the present application and the appended claims are also intended to include the majority form, unless the context clearly indicates other meanings. The words "if" / "if" used herein can be interpreted as "at the time of" or "when" or "in response to determination".

[0035] In addition, in the description of this application, unless otherwise specified, "plurality" means two or more. "And / or" describes the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone. The character " / " generally indicates that the associated objects are in an "or" relationship.

[0036] The application environment of the configuration file deployment method provided in the embodiment of the present application includes a configuration file deployment device.

[0037] The configuration file deployment method provided in the embodiments of the present application can be executed by a configuration file deployment device, which can be implemented by software and / or hardware, and can be composed of two or more physical entities, or can be composed of one physical entity. The configuration file deployment device can be any electronic device that has a configuration file deployment application installed, and the electronic device can be a computer, a mobile phone, a tablet, an industrial computer, or other smart device.

[0038] The configuration file deployment method of the embodiment of the present application can be applied to the configuration file deployment scenario of multiple applications on multiple electronic devices. The inventor found in the process of implementing the present invention that in order to meet some business needs, it is necessary for various applications on multiple electronic devices to work together and to deploy configuration files for various applications of multiple devices. Specifically, when using an automatic optical inspection device (Automated Optical Inspection, referred to as AOI) to detect the height of electronic components, it is necessary to use the stripe pattern burning application of the industrial computer, the projection brightness adjustment application of the projector, and the focal length adjustment application. The stripe pattern is burned to the projector through the stripe pattern burning application of the industrial computer, the projection brightness of the projector is adjusted through the projection brightness adjustment application, and the focal length of the lens of the projector is adjusted through the focal length adjustment application.

[0039] In the related art, experienced operators are required to log in to each device and manually deploy the configuration files of the applications on the devices one by one. In actual business, there are a large number of devices, and it takes a long time to log in to each device. Deploying the configuration files of the applications one by one leads to low efficiency of configuration file deployment. Moreover, for the same application on different devices, different configuration files are required, and the requirements for deploying configuration files are also different. This requires experienced operators to modify them to avoid the configuration files after deployment not working properly, resulting in high cost of configuration file deployment.

[0040] To this end, the present application uniformly deploys configuration files of various applications on different electronic devices through a configuration platform, eliminating the need for experienced operators to log in to each device and manually deploy application configuration files one by one, thereby improving the efficiency of configuration file deployment and reducing costs.

[0041] Based on this, the present application proposes a configuration file deployment method, system, device, storage medium and electronic device.

[0042] See also Figure 1 The configuration file deployment method provided in the embodiment of the present application is applied to a configuration platform; the configuration platform is connected to a plurality of electronic devices, each of which is installed with a plurality of applications; and comprises the following steps:

[0043] S10: Displaying a configuration file editing page; the configuration file editing page displays a plurality of first configuration files; the plurality of first configuration files are configuration files of respective applications on respective electronic devices.

[0044] The configuration platform can be integrated into a server or installed on a client. The server or client communicates with a number of electronic devices. Specifically, the server or client can communicate through an API communication interface. Electronic devices include but are not limited to computers, mobile phones, tablets, industrial computers and other smart devices.

[0045] The first configuration file is the initial configuration file of the application. The first configuration file can be the configuration file when the application is first installed, or the configuration file after the application version is updated. The configuration file of the application usually contains various configuration information required for the application to run, such as database connection, server address, port number, user name and password and other sensitive information. Each configuration information can be represented by a configuration item and a configuration value of the configuration item. The configuration file of the application includes files in formats such as INI files, YAML files or JSON files.

[0046] The configuration file editing page includes configuration items and configuration values ​​of the first configuration file. The user can view the configuration items and configuration values ​​on the configuration file editing page and modify the configuration values.

[0047] In an embodiment of the present application, the configuration platform obtains and stores configuration files of each application on each electronic device, and generates a configuration file editing page based on the configuration files of each application. Specifically, the configuration platform traverses the configuration files of each application, obtains the configuration items and configuration values ​​of the configuration files, and generates a configuration file editing page based on the configuration items and configuration values ​​of the configuration files. The user interaction interface of the configuration platform displays a configuration file editing function control, and when a user triggers the configuration file editing function control, the configuration file editing page is displayed on the user interaction interface. The configuration file editing page displays configuration items and configuration values ​​related to the stripe pattern burning application, the projection brightness adjustment application of the projector, and the focal length adjustment application. The user can edit the configuration values ​​of the configuration items related to the stripe pattern burning application, the projection brightness adjustment application of the projector, and the focal length adjustment application.

[0048] S20: In response to a triggering operation on one or more target configuration files on a configuration file editing page, generating configuration file deployment instructions corresponding to each target configuration file; wherein the target configuration file is a configuration file selected from a plurality of first configuration files.

[0049] The configuration file deployment instructions include but are not limited to configuration file loading, installation, uninstallation and update instructions.

[0050] In an embodiment of the present application, a user can select a target configuration file from several first configuration files on a configuration file editing page. Specifically, one or more first configuration files can be checked or selected. After the user selects the target configuration file, the configuration file editing page displays the loading, installation, and uninstallation function controls of the target configuration file. When the user triggers the loading, installation, or uninstallation function controls, the configuration platform generates loading, installation, or uninstallation instructions for the target configuration file in response to the user's triggering operation. The configuration file editing page displays the configuration items and configuration values ​​of the target configuration file. The user can modify or set the configuration values ​​of one or some configuration items of the target configuration file, and generate an update instruction for the target configuration file in response to the user's modification or setting operation. For example, the user can select the first configuration file of the stripe pattern burning application as the target configuration file, modify or set the configuration values ​​of one or some configuration items of the stripe pattern burning application, and generate a configuration file update instruction for the stripe pattern burning application.

[0051] S30: Determine the target application identifier of the target application where each target configuration file is located.

[0052] The target application identifier is used to uniquely identify the target application, and may be the name, type, installation path, etc. of the target application.

[0053] In an embodiment of the present application, the configuration platform communicates with multiple applications on multiple devices, and the target application identifier is used to identify the target application that communicates with the configuration platform. Specifically, after obtaining the configuration files of each application on each electronic device, the configuration platform will establish a mapping relationship between the application and the configuration file, and each configuration file uniquely corresponds to an application. The configuration platform identifies the target configuration file, determines the target application where the target configuration file is located based on the mapping relationship between the application and the configuration file, and obtains the target application identifier of the target application.

[0054] S40: Send each configuration file deployment instruction to the corresponding target application according to the target application identifier to deploy the first configuration file of the target application.

[0055] In an embodiment of the present application, the configuration platform sends the configuration file deployment instruction corresponding to the target configuration file to the target application through the API communication interface, so that the target application deploys the first configuration file of the target application according to the configuration file deployment instruction. When the configuration file deployment instruction is a configuration file load, unload or install instruction, the target application loads, unloads or installs the first configuration file. When the configuration file deployment instruction is a configuration file update instruction, the target application updates the first configuration file.

[0056] The embodiment of the present application is applied, by displaying a configuration file editing page; the configuration file editing page displays a number of first configuration files; the number of first configuration files are configuration files of each application on each electronic device; in response to a trigger operation on one or more target configuration files on the configuration file editing page, configuration file deployment instructions corresponding to each target configuration file are generated; wherein the target configuration file is a configuration file selected from the number of first configuration files; the target application identifier of the target application where each target configuration file is located is determined; according to the target application identifier, each configuration file deployment instruction is sent to the corresponding target application to deploy the first configuration file of the target application. The embodiment of the present application uniformly deploys configuration files of each application on different electronic devices through a configuration platform, without the need for experienced operators to log in to each device and manually deploy application configuration files one by one, thereby improving the deployment efficiency of configuration files and reducing costs.

[0057] In an optional embodiment, the first configuration file includes a critical configuration file and a non-critical configuration file; step S10 includes steps S101 to S104, which are specifically as follows:

[0058] S101: Acquire a first configuration file of each application on each electronic device.

[0059] In the embodiment of the present application, the configuration platform obtains the first configuration file of each application on each electronic device in real time or periodically through the API communication interface.

[0060] S102: Parse the key configuration files and the non-key configuration files in the first configuration files of each application to obtain key configuration items of the key configuration files and non-key configuration items of the non-key configuration files.

[0061] Among them, critical configuration files refer to configuration files that are crucial in the application, which contain configuration information necessary for the application to run, including but not limited to network connection settings, database connections, user credentials and other sensitive information, etc. Non-critical configuration files refer to configuration files that are not particularly important in the application, which may contain certain configuration information of the application, but the loss or damage will not have a significant impact on the normal operation of the application, including but not limited to the interface layout, button position and color of the application, etc.

[0062] In an embodiment of the present application, the configuration platform parses the key configuration files and non-key configuration files of each application, and displays the key configuration items of the key configuration files and the non-key configuration items of the non-key configuration files on the configuration file editing page, so as to facilitate users to distinguish between key configuration items and non-key configuration items.

[0063] S103: Displaying non-critical configuration items on the configuration file editing page;

[0064] S104: Setting user access rights for key configuration items, or not displaying key configuration items on the configuration file editing page.

[0065] In the related art, if an operator accidentally changes a key configuration item of a key configuration file, it will cause a security vulnerability. Therefore, the configuration platform of the present application can set different user permissions for each configuration item of the configuration file. Specifically, the configuration items include key configuration items and non-key configuration items. If the key configuration items are modified, it is easy to cause the target application to fail to run. Therefore, the configuration platform can set high-level user access rights for key configuration items, allowing only some users to modify key configuration items. Or for key configuration items, the configuration platform does not open modification permissions to users. Specifically, the configuration file editing page can only display non-key configuration items with non-key configuration files.

[0066] By parsing the configuration file, the configuration file editing page can be automatically displayed. Setting user access rights for key configuration items in key configuration files can improve the security of deploying configuration files.

[0067] In an alternative embodiment, see Figure 3 , step S40, including steps S401 to S402, are as follows:

[0068] S401: If the target application identifier is a preset application identifier, a script program and a configuration file deployment instruction corresponding to the target application are sent to the target application according to the target application identifier.

[0069] Among them, the preset application logo is used to identify third-party applications (or non-self-developed applications).

[0070] In an embodiment of the present application, for a third-party application, the configuration platform pre-stores a corresponding script program, which is used to execute the configuration file deployment instruction in the third-party application. Specifically, the configuration platform establishes a mapping relationship between a preset application identifier and a script program, and a preset application identifier corresponds to a unique script program. If the target application identifier is a preset application identifier, the configuration platform obtains the corresponding script program based on the mapping relationship, and sends the script program and the configuration file deployment instruction to the target application.

[0071] S402: The control script program executes the configuration file deployment instruction to deploy the first configuration file of the target application.

[0072] In an embodiment of the present application, the configuration platform communicates with the script program through an API communication interface, controls the script program to execute configuration file deployment instructions, and thus deploys the first configuration file on the target application.

[0073] If the target application is a self-developed application, no script program is required, and the configuration platform can send the configuration file deployment instructions to the target application.

[0074] The configuration platform can automatically and quickly deploy configuration files on third-party applications by communicating with script programs.

[0075] The present application also provides a system embodiment that can be used to execute the content of the configuration file deployment method in the embodiment of the present application. For details not disclosed in the device embodiment of the present application, please refer to the content of the configuration file deployment method in the embodiment of the present application.

[0076] See also Figure 4 , a configuration file deployment system 10 disclosed in an embodiment of the present application includes a configuration platform 100 and several electronic devices; the configuration platform 100 is connected to several electronic devices 200, and each electronic device 200 is installed with several applications;

[0077] The configuration platform 100 displays a configuration file editing page; the configuration file editing page displays a plurality of first configuration files; the plurality of first configuration files are configuration files of various applications on various electronic devices 200;

[0078] The configuration platform 100 generates configuration file deployment instructions corresponding to each target configuration file in response to a trigger operation on one or more target configuration files on a configuration file editing page; wherein the target configuration file is a configuration file selected from a plurality of first configuration files;

[0079] The configuration platform 100 determines the target application identifier of the target application where each target configuration file is located;

[0080] The configuration platform 100 sends each configuration file deployment instruction to the corresponding target application according to the target application identifier;

[0081] The target application deploys the first configuration file of the target application according to the configuration file deployment instruction.

[0082] The configuration file deployment system provided in the above embodiment and the configuration file deployment method provided in the embodiment of the present application belong to the same concept. For details on the implementation process, please refer to steps S10 to S40 of the method embodiment, which will not be repeated here.

[0083] In an optional embodiment, after the step of sending each configuration file deployment instruction to the corresponding target application according to the target application identifier, the configuration platform 100 includes:

[0084] The configuration platform 100 generates a first version feature value according to the configuration file deployment instruction.

[0085] The first version characteristic value is used to uniquely identify the configuration file deployment instruction.

[0086] In an embodiment of the present application, the configuration platform 100 calculates the first version characteristic value of each configuration file deployment instruction. The configuration platform 100 can distinguish the configuration file deployment instructions of each application and multiple configuration file deployment instructions of each application through the first version characteristic value, and batch deploy the first configuration files of each application.

[0087] Specifically, the configuration platform 100 uses the MD5 algorithm to calculate the MD5 value of the configuration file deployment instruction, and uses the MD5 value as the first version characteristic value of the configuration file deployment instruction. The MD5 algorithm is a hash algorithm that is used to map data of any length to a hash value (MD5 value) of a fixed length. For example, for the configuration file deployment instruction of the stripe pattern burning application, the first version characteristic value MD5(1) is generated. For the configuration file deployment instruction of the projection brightness adjustment application, the first version characteristic value MD5(2) is generated.

[0088] The configuration platform 100 sends the first version feature value and the configuration file deployment instruction to the corresponding target application according to the target application identifier.

[0089] In an embodiment of the present application, the configuration file deployment instruction may be missing or lost during the sending process. In order to ensure the integrity of the configuration file deployment instruction during the sending process, the configuration platform 100 sends the configuration file deployment instruction and the first version characteristic value of the configuration file deployment instruction to the target application corresponding to the target configuration file at the same time, and verifies the integrity of the configuration file deployment instruction through the first version characteristic value.

[0090] The step of deploying the first configuration file of the target application according to the configuration file deployment instruction comprises:

[0091] The target application calculates the version value of the configuration file deployment instruction to obtain a second version characteristic value.

[0092] In the embodiment of the present application, if the target application is a self-developed application, the target application uses the MD5 algorithm to calculate the MD5 value of the configuration file deployment instruction to obtain the second version characteristic value. If the target application is a third-party application, the configuration platform 100 controls the script program through the API communication interface to use the MD5 algorithm to calculate the MD5 value of the configuration file deployment instruction to obtain the second version characteristic value.

[0093] If the second version characteristic value is consistent with the first version characteristic value, the target application deploys the first configuration file of the target application according to the configuration file deployment instruction.

[0094] In the embodiment of the present application, if the second version feature value is consistent with the first version feature value, it means that the configuration file deployment instruction is complete, there is no missing or loss during the sending process, and the target application or script program can execute the configuration file deployment instruction to deploy the first configuration file of the target application. If the second version feature value is inconsistent with the first version feature value, it means that the configuration file deployment instruction is incomplete, there is missing or loss during the sending process, the target application or script program can report an error to the configuration platform 100, and the configuration platform 100 resends the configuration file deployment instruction to the target application corresponding to the target configuration file.

[0095] By calculating the first version characteristic value of the configuration file deployment instruction, and sending the configuration file deployment instruction and the second version characteristic value of the configuration file deployment instruction to the target application corresponding to the target configuration file at the same time, the integrity of the configuration file deployment instruction can be ensured and the accuracy of the configuration platform 100 in deploying the application configuration file can be improved.

[0096] In an optional embodiment, after the step of deploying the first configuration file of the target application according to the configuration file deployment instruction, the target application further comprises:

[0097] The target application generates a second version characteristic value according to the configuration file deployment instruction.

[0098] In the embodiment of the present application, after receiving each configuration file deployment instruction, the target application will use the MD5 algorithm to calculate an MD5 value for each configuration file deployment instruction, and use the MD5 value as the second version characteristic value corresponding to the configuration file deployment instruction. The target application can distinguish multiple configuration file deployment instructions received by the target application based on the second version characteristic value.

[0099] The target application stores the configuration file deployment instruction and the second version feature value.

[0100] In an embodiment of the present application, the configuration file deployment instruction and the second version characteristic value are stored, so that in a subsequent rollback operation on the configuration file of the target application, the corresponding configuration file deployment instruction can be queried according to the version characteristic value.

[0101] In an optional embodiment, the configuration file deployment system 10 further includes:

[0102] The configuration platform 100 obtains a rollback version characteristic value of a configuration file deployment instruction of the target application in response to a rollback operation on the current configuration file of the target application; and sends the rollback version characteristic value to the target application; wherein the target application receives multiple configuration file deployment instructions, each configuration file deployment instruction corresponds to a unique version characteristic value, and the rollback version characteristic value is one of the version characteristic values.

[0103] The rollback operation refers to the operation of modifying the current version number of the configuration file to any version number before deployment.

[0104] In the embodiment of the present application, the configuration platform 100 stores multiple configuration file deployment instructions of the target application, and uses the MD5 algorithm to calculate an MD5 value for each configuration file deployment instruction to obtain a version feature value corresponding to each configuration file deployment instruction.

[0105] When running the target application, if it is found that the current configuration file of the target application cannot work properly, the user can trigger a rollback operation through the configuration platform 100 to roll back the current configuration file of the target application to the previous version of the configuration file or an earlier version of the configuration file. Specifically, the configuration file editing page is provided with a configuration file rollback control. By triggering the configuration file rollback control, the user displays the configuration file deployment instructions and corresponding version feature values ​​corresponding to the configuration files of various versions of the application. The user can select or check one of the version feature values ​​as the rollback version feature value.

[0106] The target application queries the corresponding configuration file deployment instruction according to the rollback version characteristic value; and rolls back the current configuration file of the target application according to the corresponding configuration file deployment instruction.

[0107] In an embodiment of the present application, the target application or script program queries the configuration file deployment instruction corresponding to the rollback version characteristic value, executes the configuration file deployment instruction, and rolls back the current configuration file of the target application to the configuration file corresponding to the rollback version characteristic value, so that the target application begins to use the configuration items and configuration values ​​of the configuration file corresponding to the rollback version characteristic value.

[0108] The configuration platform 100 can implement the rollback of the configuration file conveniently and quickly by acquiring the rollback version feature value of the configuration file deployment instruction of the target application.

[0109] The present application also provides an apparatus embodiment, which can be used to execute the content of the configuration file deployment method in the embodiment of the present application. For details not disclosed in the apparatus embodiment of the present application, please refer to the content of the configuration file deployment method in the embodiment of the present application.

[0110] See also Figure 5 , a configuration file deployment device 6 disclosed in an embodiment of the present application includes:

[0111] The editing page display module 61 is used to display a configuration file editing page; the configuration file editing page displays a plurality of first configuration files; the plurality of first configuration files are configuration files of various applications on various electronic devices 200;

[0112] A deployment instruction generation module 62 is used to generate configuration file deployment instructions corresponding to each target configuration file in response to a trigger operation on one or more target configuration files on the configuration file editing page; wherein the target configuration file is a configuration file selected from a plurality of first configuration files;

[0113] A target application identification determination module 63, used to determine the target application identification of the target application where each target configuration file is located;

[0114] The deployment instruction sending module 64 is used to send each configuration file deployment instruction to the corresponding target application according to the target application identifier, so as to deploy the first configuration file of the target application.

[0115] The configuration file deployment device provided in the above embodiment and the configuration file deployment method provided in the embodiment of the present application belong to the same concept. For the implementation process, please refer to steps S10 to S40 of the method embodiment for details, which will not be repeated here.

[0116] The present application also provides a device embodiment that can be used to execute the content of the configuration file deployment method in the embodiment of the present application. For details not disclosed in the device embodiment of the present application, please refer to the content of the configuration file deployment method in the embodiment of the present application.

[0117] See also Figure 6 The present application also provides an electronic device 300, which can be a computer, a configuration file deployment device, etc. In an exemplary embodiment of the present application, the electronic device 300 is a configuration file deployment device, which includes: at least one processor 301, at least one memory 302, at least one display, at least one network interface 303, a user interface 304, and at least one communication bus 305.

[0118] The user interface 304 is mainly used to provide an input interface for the user and obtain data input by the user. Optionally, the user interface may also include a standard wired interface or a wireless interface.

[0119] The network interface 303 may optionally include a standard wired interface or a wireless interface (such as a WI-FI interface).

[0120] The communication bus 305 is used to realize the connection and communication between these components.

[0121] Among them, the processor 301 may include one or more processing cores. The processor uses various interfaces and lines to connect various parts of the entire electronic device, and executes various functions of the electronic device and processes data by running or executing instructions, programs, code sets or instruction sets stored in the memory, and calling data stored in the memory. Optionally, the processor can be implemented in at least one hardware form of digital signal processing (Digital Signal Processing, DSP), field programmable gate array (Field-Programmable Gate Array, FPGA), and programmable logic array (Programmable Logic Array, PLA). The processor can integrate one or more combinations of central processing unit (Central Processing Unit, CPU), image processor (Graphics Processing Unit, GPU) and modem. Among them, the CPU mainly processes the operating system, user interface and application program, etc.; the GPU is responsible for rendering and drawing the content to be displayed by the display layer; the modem is used to process wireless communication. It can be understood that the above-mentioned modem may not be integrated into the processor, but implemented by a single chip.

[0122] Among them, the memory 302 may include a random access memory (Random Access Memory, RAM) and may also include a read-only memory (Read-Only Memory). Optionally, the memory includes a non-transitory computer-readable storage medium. The memory can be used to store instructions, programs, codes, code sets or instruction sets. The memory may include a program storage area and a data storage area, wherein the program storage area may store instructions for implementing an operating system, instructions for at least one function (such as a touch function, a sound playback function, an image playback function, etc.), instructions for implementing the above-mentioned method embodiments, etc.; the data storage area may store data involved in the above-mentioned method embodiments, etc. The memory may also be optionally at least one storage device located away from the aforementioned processor. As Figure 6 As shown, the memory as a computer storage medium may include an operating system, a network communication module, a user interface module, and an operating application program.

[0123] The processor can be used to call an application of a configuration file deployment method for a configuration file deployment device stored in a memory, and specifically execute the method steps of the above-mentioned embodiment. The specific execution process can refer to the specific description shown in the method embodiment, which will not be repeated here.

[0124] The present application also provides a computer-readable storage medium on which a computer program is stored, and the instructions are suitable for being loaded by a processor and executing the method steps of the above-mentioned embodiment. The specific execution process can refer to the specific description shown in the embodiment, and will not be repeated here. The device where the storage medium is located can be a personal computer, a laptop computer, a smart phone, a tablet computer, a picture director device and other electronic devices.

[0125] For the device embodiments, since they basically correspond to the method embodiments, the relevant parts can refer to the partial description of the method embodiments. The device embodiments described above are merely schematic, wherein the components described as separate parts may or may not be physically separated, and the parts displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the present application scheme. A person of ordinary skill in the art can understand and implement it without paying any creative work.

[0126] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented in one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that include computer-usable program code.

[0127] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 These computer program instructions can also be stored in a computer-readable memory that can guide a computer or other programmable data processing device to work in a specific way, so that the instructions stored in the computer-readable memory produce a product including an instruction device, which implements the function selected in the process. Figure 1 A process or multiple processes and / or boxes Figure 1 function selected in a box or multiple boxes.

[0128] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 steps for the function selected in a box or multiple boxes.

[0129] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.

[0130] The memory may include non-permanent memory in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. The memory is an example of a computer-readable medium.

[0131] Computer readable media include permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. Information can be computer readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include temporary computer readable media (transitory media), such as modulated data signals and carrier waves.

[0132] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.

[0133] The above are only embodiments of the present application and are not intended to limit the present application. For those skilled in the art, the present application may have various changes and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included within the scope of the claims of the present application.

Claims

1. A method for deploying a configuration file, characterized in that: The configuration platform is applied; the configuration platform is connected to a plurality of electronic devices, each of which is installed with a plurality of applications; the method comprises the following steps: Displaying a configuration file editing page; the configuration file editing page displays a plurality of first configuration files; the plurality of first configuration files are configuration files of each of the applications on each of the electronic devices; In response to a triggering operation on one or more target configuration files on the configuration file editing page, generating configuration file deployment instructions corresponding to each of the target configuration files; wherein the target configuration file is a configuration file selected from the plurality of the first configuration files; Determine the target application identifier of the target application where each of the target configuration files is located; According to the target application identifier, each of the configuration file deployment instructions is sent to the corresponding target application to deploy the first configuration file of the target application.

2. The method for deploying a configuration file according to claim 1, characterized in that: The step of sending each of the configuration file deployment instructions to the corresponding target application according to the target application identifier to deploy the first configuration file of the target application includes: If the target application identifier is a preset application identifier, the script program corresponding to the target application and the configuration file deployment instruction are sent to the target application according to the target application identifier; The script program is controlled to execute the configuration file deployment instruction to deploy the first configuration file of the target application.

3. The method for deploying a configuration file according to any one of claims 1 to 2, characterized in that: The first configuration file includes a critical configuration file and a non-critical configuration file; The step of displaying the configuration file editing page includes: Obtaining a first configuration file for each of the applications on each of the electronic devices; Parsing the key configuration file and the non-key configuration file in the first configuration file of each of the applications to obtain key configuration items of the key configuration file and non-key configuration items of the non-key configuration file; Displaying the non-critical configuration items on the configuration file editing page; User access rights are set for the key configuration items, or the key configuration items are not displayed on the configuration file editing page.

4. A configuration file deployment system, characterized in that: It includes a configuration platform and several electronic devices; the configuration platform is connected to the several electronic devices, and each of the electronic devices is installed with several applications; The configuration platform displays a configuration file editing page; the configuration file editing page displays a plurality of first configuration files; the plurality of first configuration files are configuration files of each of the applications on each of the electronic devices; The configuration platform generates configuration file deployment instructions corresponding to each of the target configuration files in response to a trigger operation on one or more target configuration files on the configuration file editing page; wherein the target configuration file is a configuration file selected from the plurality of the first configuration files; The configuration platform determines the target application identifier of the target application where each of the target configuration files is located; The configuration platform sends each of the configuration file deployment instructions to the corresponding target application according to the target application identifier; The target application deploys the first configuration file of the target application according to the configuration file deployment instruction.

5. The configuration file deployment system according to claim 4, characterized in that: After the step of sending each of the configuration file deployment instructions to the corresponding target application according to the target application identifier, the configuration platform includes: The configuration platform generates a first version characteristic value according to the configuration file deployment instruction; The configuration platform sends the first version feature value and the configuration file deployment instruction to the corresponding target application according to the target application identifier; The step of deploying the first configuration file of the target application according to the configuration file deployment instruction comprises: The target application calculates a version value of the configuration file deployment instruction to obtain a second version characteristic value; If the second version characteristic value is consistent with the first version characteristic value, the target application deploys the first configuration file of the target application according to the configuration file deployment instruction.

6. The configuration file deployment system according to claim 4, characterized in that: After the step of deploying the first configuration file of the target application according to the configuration file deployment instruction, the step includes: The target application generates a second version characteristic value according to the configuration file deployment instruction; The target application stores the configuration file deployment instruction and the second version feature value.

7. The configuration file deployment system according to claim 4, characterized in that: Also includes: The configuration platform obtains a rollback version feature value of a configuration file deployment instruction of the target application in response to a rollback operation on the current configuration file of the target application; Sending the rollback version characteristic value to the target application; wherein the target application receives multiple configuration file deployment instructions, each configuration file deployment instruction corresponds to a unique version characteristic value, and the rollback version characteristic value is one of the version characteristic values; The target application queries the corresponding configuration file deployment instruction according to the rollback version feature value; and rolls back the current configuration file of the target application according to the corresponding configuration file deployment instruction.

8. A configuration file deployment device, characterized in that: include: An editing page display module, used to display a configuration file editing page; the configuration file editing page displays a plurality of first configuration files; The first configuration files are configuration files of the applications on the electronic devices; A deployment instruction generation module, configured to generate configuration file deployment instructions corresponding to each of the target configuration files in response to a trigger operation on one or more target configuration files on the configuration file editing page; wherein the target configuration file is a configuration file selected from the plurality of the first configuration files; A target application identification determination module, used to determine the target application identification of the target application where each of the target configuration files is located; The deployment instruction sending module is used to send each of the configuration file deployment instructions to the corresponding target application according to the target application identifier, so as to deploy the first configuration file of the target application.

9. An electronic device comprising a display, a processor and a memory; characterized in that: The memory stores a computer program, and the computer program is suitable for being loaded by the processor and executing the configuration file deployment method according to any one of claims 1 to 3.

10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the method for deploying the configuration file as claimed in any one of claims 1 to 3 is implemented.