File configuration editing method and system in service deployment
A file configuration and editing system technology, applied in the field of cloud services, can solve the problems of inconvenient editing and viewing of configuration parameters, high data error rate, and high work pressure for operation and maintenance personnel, so as to facilitate later operation and maintenance and upgrades, and improve deployment efficiency. , the effect of shortening the deployment time
Patent Information
- Authority / Receiving Office
- CN · China
- Current Assignee / Owner
- Publication Date
- 2020-07-10
Smart Images

Figure 1 
Figure 2 
Figure 3
Abstract
Description
technical field
[0001] The invention relates to the field of cloud services, in particular to a method and system for editing file configuration in service deployment. Background technique
[0002] Faced with the development trend of larger and larger project scale and project scope, more and more complex applications, and more and more module integrations, project deployment and release often rely on multiple components, making deployment more difficult. The configuration files of the components will also increase suddenly, making the deployment extremely challenging, and it is a headache for the operation and maintenance release personnel.
[0003] At the same time, the previous manual deployment was time-consuming and labor-intensive, and the probability of errors was often high, which can be said to be unavoidable. In the face of continuous improvement in deployment requirements, rapid deployment in a short period of time is also a must-have capability for the modern dev...
Examples
Embodiment 1
[0062] as attached figure 1 As shown, the file configuration editing method in the service deployment of the present invention, the method is to connect the Git warehouse of the remote configuration file (because the git warehouse is the mainstream warehouse in research and development, this project takes git as an example), through the interface of the Git command API, clone some or all files in the remote warehouse to the local, modify, merge or view configuration parameters, and then push the final configuration file to the remote Git warehouse by calling the API interface of the Git command for use when deploying service services; attached figure 2 As shown, the details are as follows:
[0063] S1. Deployment scripts are pulled remotely and displayed through a browser: Considering that it is difficult to modify the comparison files directly on Git, and the official API provided by Git cannot be implemented and the UI interface is relatively fixed, which cannot satisfy co...
Embodiment 2
[0086] as attached Figure 5 As shown, the file configuration editing system in service deployment of the present invention includes,
[0087] The script remote pull and display module is used to deploy the script to pull remotely and display it through the browser. It is displayed by cloning to the local. During the cloning process, eclipse is used to provide the jgit jar package for operation. With the help of the jgit jar toolkit, call The interface is used to operate Git; among them, the specific deployment of the script remote pull and display module is as follows:
[0088] On the physical machine where the service is deployed, plan an area for storing files cloned locally;
[0089] Call the API interface of git to implement cloning, the interface method is Git.cloneRepository();
[0090] Then add the address of the warehouse and the branch of the Git project, and operate according to the requirements.
[0091] The file deployment operation module is used to operate an...