CN114020305A - Script data configuration method and device - Google Patents

Script data configuration method and device Download PDF

Info

Publication number
CN114020305A
CN114020305A CN202111063057.2A CN202111063057A CN114020305A CN 114020305 A CN114020305 A CN 114020305A CN 202111063057 A CN202111063057 A CN 202111063057A CN 114020305 A CN114020305 A CN 114020305A
Authority
CN
China
Prior art keywords
script
information
original
project
script information
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202111063057.2A
Other languages
Chinese (zh)
Inventor
左磊
安蕴岳
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Tianju Dihe Suzhou Data Co ltd
Original Assignee
Tianju Dihe Suzhou Data Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Tianju Dihe Suzhou Data Co ltd filed Critical Tianju Dihe Suzhou Data Co ltd
Priority to CN202111063057.2A priority Critical patent/CN114020305A/en
Publication of CN114020305A publication Critical patent/CN114020305A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • G06F8/654Updates using techniques specially adapted for alterable solid state memories, e.g. for EEPROM or flash memories
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/27Replication, distribution or synchronisation of data between databases or within a distributed database system; Distributed database system architectures therefor

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Databases & Information Systems (AREA)
  • Computer Security & Cryptography (AREA)
  • Computing Systems (AREA)
  • Data Mining & Analysis (AREA)
  • Stored Programmes (AREA)

Abstract

The invention discloses a script data configuration method and device. Wherein, the method comprises the following steps: acquiring original script information, wherein the original script information comprises: the script identification is used for identifying the attribute and the change information of the script; constructing a script warehouse according to the original script information, wherein the constructing of the script warehouse according to the original script information comprises: acquiring the script warehouse space information; generating a script storage position according to the script warehouse space information and the original script information; constructing the script warehouse according to the script storage position; updating script information in the script warehouse according to script change data; and displaying the updated script information. The invention solves the technical problems that in the prior art, for the same type of project, the script operation is basically the same, the environment variables may be different, each project defines a deployment script, when modification is needed, modification is carried out according to the project condition, if a large number of projects need modification, modification must be carried out one by one, even if the modified contents are completely consistent with the prior art scheme, manual maintenance is needed, and automatic processing cannot be realized.

Description

Script data configuration method and device
Technical Field
The invention relates to the field of script data processing, in particular to a script data configuration method and device.
Background
Along with the continuous development of intelligent science and technology, people use intelligent equipment more and more among life, work, the study, use intelligent science and technology means, improved the quality of people's life, increased the efficiency of people's study and work.
Currently, in the process of continuously integrating projects, a deployment script is defined for each project, the type of each project is different, and the script operation is also different. But the script operation is substantially the same for the same type of item, and the environment variables may be different. Each project defines a deployment script, when modification is needed, the deployment script is modified according to project conditions, if a large number of projects need modification, the projects need to be modified one by one, even if the modified contents are completely consistent. The prior art scheme needs manpower to maintain and cannot realize automation.
In view of the above problems, no effective solution has been proposed.
Disclosure of Invention
The embodiment of the invention provides a script data configuration method and a device, which are used for solving the technical problems that in the prior art, the script operation is basically the same for projects of the same type, environment variables are possibly different, each project defines a deployment script, when modification is needed, modification is needed according to the project conditions, if a large number of projects need modification, modification must be conducted one by one, even if the modified contents are completely consistent with the prior art scheme, manual maintenance is needed, and automatic processing cannot be achieved.
According to an aspect of an embodiment of the present invention, there is provided a script data configuration method, including: acquiring original script information, wherein the original script information comprises: the script identification is used for identifying the attribute and the change information of the script; constructing a script warehouse according to the original script information, wherein the constructing of the script warehouse according to the original script information comprises: acquiring the script warehouse space information; generating a script storage position according to the script warehouse space information and the original script information; constructing the script warehouse according to the script storage position; updating script information in the script warehouse according to script change data; and displaying the updated script information.
Optionally, before the obtaining the original script information, the method further includes: acquiring an item activation state, wherein the item activation state comprises: activated, not activated.
Optionally, before updating the script information in the script repository according to the script change data, the method further includes: and acquiring the script change data of the project.
Optionally, the updating the script information in the script repository according to the script change data includes: splitting the original script information in the script warehouse into general script information and other script information; and updating the universal script information according to the script change data and the synchronous program.
Optionally, the splitting the original script information in the script repository into general script information and other script information includes: and the synchronous program splits the original script information into the universal script information and the other script information through a placeholder.
According to another aspect of the embodiments of the present invention, there is also provided a script data configuring apparatus, including: the acquisition module is used for acquiring original script information; the construction module is used for constructing a script warehouse according to the original script information; the updating module is used for updating the script information in the script warehouse according to the script change data; and the display module is used for displaying the updated script information.
Optionally, the apparatus further comprises: an activation module, configured to acquire an item activation status, where the item activation status includes: activated, not activated.
Optionally, the apparatus further comprises: and the change module is used for acquiring the script change data of the project.
Optionally, the update module includes: the splitting unit is used for splitting the original script information in the script warehouse into general script information and other script information; and the updating unit is used for updating the universal script information according to the script change data and the synchronous program.
Optionally, the splitting unit includes: and the synchronous program splits the original script information into the universal script information and the other script information through placeholders.
According to another aspect of the embodiments of the present invention, a non-volatile storage medium is further provided, where the non-volatile storage medium includes a stored program, and the program controls, when running, a device in which the non-volatile storage medium is located to execute a script data configuration method.
According to another aspect of the embodiments of the present invention, there is also provided an electronic device, including a processor and a memory; the memory is stored with computer readable instructions, and the processor is used for executing the computer readable instructions, wherein the computer readable instructions execute a script data configuration method.
In the embodiment of the invention, the original script information is obtained; constructing a script warehouse according to the original script information; updating script information in the script warehouse according to script change data; the method for displaying the updated script information solves the technical problems that in the prior art, the script operation is basically the same for the same type of project, the environment variables may be different, each project defines a deployment script, when modification is needed, modification is needed according to the project conditions, if a large number of projects need modification, modification must be conducted one by one, even if the modified content is completely consistent with the prior art scheme, manual maintenance is needed, and automatic processing cannot be achieved.
Drawings
The accompanying drawings, which are included to provide a further understanding of the invention and are incorporated in and constitute a part of this application, illustrate embodiment(s) of the invention and together with the description serve to explain the invention without limiting the invention. In the drawings:
FIG. 1 is a flow chart of a script data configuration method according to an embodiment of the invention;
fig. 2 is a block diagram of a script data configuring apparatus according to an embodiment of the present invention.
Detailed Description
In order to make the technical solutions of the present invention better understood, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
It should be noted that the terms "first," "second," and the like in the description and claims of the present invention and in the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the invention described herein are capable of operation in sequences other than those illustrated or described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
In accordance with an embodiment of the present invention, there is provided a method embodiment of a script data configuration method, it being noted that the steps illustrated in the flowchart of the figure may be performed in a computer system such as a set of computer executable instructions and that, although a logical order is illustrated in the flowchart, in some cases the steps illustrated or described may be performed in an order different than here.
Example one
Fig. 1 is a flowchart of a script data configuration method according to an embodiment of the present invention, as shown in fig. 1, the method includes the following steps:
step S102, obtaining original script information.
Specifically, in order to implement updating and deploying script information and synchronize an updating result to all scripts in a script warehouse, so as to solve the technical problems that in the prior art, for the same type of project, script operations are basically the same, environment variables may be different, each project defines a deployment script, when modification is needed, modification is performed according to project conditions, if a large number of projects need to be modified, the projects need to be modified one by one, even if the modified contents are completely consistent with the prior art scheme, manual maintenance is required, and automatic processing cannot be performed, first, original deployment script information needs to be acquired, wherein the original deployment script information is acquired through corresponding project conditions, script information includes script parameters and other data related to the project, and then, subsequent script information is constructed according to the original script information transmitted by a user aggregate or acquired by a collector, thereby providing preconditions for the update process of the script.
Optionally, before the obtaining the original script information, the method further includes: acquiring an item activation state, wherein the item activation state comprises: activated, not activated.
Specifically, in order to increase the execution efficiency of the embodiment of the present invention and save unnecessary computing resources, before the acquiring the original script information, the method further includes: acquiring an item activation state, wherein the item activation state comprises: activated, not activated. The acquisition of the project activation state can be performed by acquiring whether the project is started or not through a state acquisition device, and if the project is in the activation state, the subsequent original script information and the subsequent updated information can be acquired and acquired, so that the computing resource is saved, the computing efficiency is increased, and the technical purpose of optimizing the updating of the whole project is achieved.
And step S104, constructing a script warehouse according to the original script information.
Specifically, after the original script information is acquired, a script warehouse needs to be constructed according to the acquired original script information, wherein deployment scripts of different types of projects are stored in a project of the script warehouse, and a specially-assigned person is responsible for maintaining the deployment scripts. If the script changes, the program is automatically synchronized to each project. The script warehouse is a database after the collection of a plurality of script information, stores all the script information, and is convenient for subsequent updating, synchronization and calling of the script information. For example, the project contains key files: yml, deploy _ laravel; yml, deploy _ docker; deploy _ go.yml; yml, deploy _ python; sh, deployment _ update; wherein: yml is used to deploy the larvel project; yml for deploying Go projects; yml is used to deploy a Docker project; yml for deploying Python project; sh defines a script that synchronizes the above files, referred to as a "sync program" in embodiments of the present invention.
And step S106, updating the script information in the script warehouse according to the script change data.
Specifically, when information update needs to be performed on script information in the script repository generated in the above embodiment, that is, after script change data occurs, the script change data needs to be synchronized into a corresponding script through a synchronization execution program and synchronized, so that when a subsequent project calling is performed on any script, an updated script can be directly obtained.
For example, there are a variety of item types, such as: PHP projects, front end projects, APP projects, applet projects, and the like. Each project has its deployment script, and the deployment script defines a set of deployment processes, and the different types of project processes are not identical. These deployment scripts are not invariable and can be changed at any time according to actual needs, but must be changed by the administrator. There is a deployment script repository storing deployment scripts for different types of projects, the file structure being substantially as follows: a deployment script 1.0 of a PHP project, a deployment script 1.1 of a front-end project, and a deployment script 1.2 of an applet project. This is illustrated by the following case: the administrator determines the deployment scripts and stores the corresponding deployment scripts in a script repository, and the file list in the current repository is as follows: PHP project deployment script 1.0, APP project deployment script 1.1, applet project deployment script 1.5. In the initialization stage, the synchronization program synchronizes each deployment script to each item, such as: synchronizing PHP project deployment script 1.0 to a PHP project, synchronizing APP project deployment script 1.1 to an APP project, and synchronizing applet project deployment script 1.5 to an applet project.
Additionally, when the administrator decides to change the deployment script, such as: the PHP project deployment script is upgraded to 1.1 from 1.0 (a cleaning cache flow is added), and the APP project deployment script is upgraded to 1.2 from 1.1 (a restart flow is added). The synchronization procedure performs the following operations: synchronizing PHP project deployment script 1.1 to a PHP project and synchronizing APP project deployment script 1.2 to an APP project. Deployment scripts are not persistent and, when they change, automatically synchronize the changing content to the corresponding project. The synchronization program of the embodiment of the present invention can be run in the following manner: and acquiring a script list in a script warehouse, carrying out the following operation aiming at each script, taking the PHP project deployment script as an example, calling API (application program interface) service provided by a code warehouse, finding out all PHP projects, downloading the PHP projects screened in the last step, configuring PHP project script data into each downloaded PHP project, and submitting the change of each PHP project to the code warehouse.
Optionally, before updating the script information in the script repository according to the script change data, the method further includes: and acquiring the script change data of the project. Optionally, the updating the script information in the script repository according to the script change data includes: splitting the original script information in the script warehouse into general script information and other script information; and updating the universal script information according to the script change data and the synchronous program. Optionally, the splitting the original script information in the script repository into general script information and other script information includes: and the synchronous program splits the original script information into the universal script information and the other script information through a placeholder. Specifically, in the embodiment of the present invention, a Webhook may be defined for the script repository item, and when a file in the script repository item changes, the synchronization program is executed. Executing the log example: starting to execute the synchronous program;
----
current item www.abc.com;
item type: laravel;
comparing the default _ laravel.yml file in the script repository with the default _ laravel.yml file in the directory of www.abc.com;
the workflow file is unchanged and does not need to be continuously processed.
----
Current item xyz.abc.com;
item type: docker;
comparing the deploy _ docker.yml file in the script repository with the deploy _ docker.yml file in the directory of xyz.abc.com;
and submitting the code warehouse changed to xyz.
----
The execution of the synchronization program ends.
The key steps of the synchronous program are that when the synchronous program executes the task of the synchronous deployment script, the deployment script is divided into two parts, and only the content of the 'universal script' part is synchronized to the project:
wherein the first part is a personalized configuration of the item:
name: Deploy Laravel
env: PHP_VERSION: "7.4"
on pushing to a code warehouse
# -cuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuut- # ← place holder
The second part is a universal script:
jobs-check code
-new database build
Construction of
-synchronizing to a production server
-flush cache
And the deployment script is split by a synchronization program through a placeholder.
And step S108, displaying the updated script information.
Specifically, after the updated script information is obtained, the script information needs to be displayed through a display device for the convenience of the user to view and analyze.
Through the embodiment, the technical problems that in the prior art, for the same type of project, the script operation is basically the same, the environment variables may be different, each project defines a deployment script, when modification is needed, modification is carried out according to the project condition, if a large number of projects need modification, modification must be carried out one by one, even if the modified contents are completely consistent with the prior art scheme, manual maintenance is needed, and automatic processing cannot be achieved are solved.
Example two
Fig. 2 is a block diagram of a configuration apparatus of script data according to an embodiment of the present invention, as shown in fig. 2, the apparatus includes:
and an obtaining module 20, configured to obtain the original script information.
Specifically, in order to implement updating and deploying script information and synchronize an updating result to all scripts in a script warehouse, so as to solve the technical problems that in the prior art, for the same type of project, script operations are basically the same, environment variables may be different, each project defines a deployment script, when modification is needed, modification is performed according to project conditions, if a large number of projects need to be modified, the projects need to be modified one by one, even if the modified contents are completely consistent with the prior art scheme, manual maintenance is required, and automatic processing cannot be performed, first, original deployment script information needs to be acquired, wherein the original deployment script information is acquired through corresponding project conditions, script information includes script parameters and other data related to the project, and then, subsequent script information is constructed according to the original script information transmitted by a user aggregate or acquired by a collector, thereby providing preconditions for the update process of the script.
Optionally, the apparatus further comprises: an activation module, configured to acquire an item activation status, where the item activation status includes: activated, not activated.
Specifically, in order to increase the execution efficiency of the embodiment of the present invention and save unnecessary computing resources, before the acquiring the original script information, the method further includes: acquiring an item activation state, wherein the item activation state comprises: activated, not activated. The acquisition of the project activation state can be performed by acquiring whether the project is started or not through a state acquisition device, and if the project is in the activation state, the subsequent original script information and the subsequent updated information can be acquired and acquired, so that the computing resource is saved, the computing efficiency is increased, and the technical purpose of optimizing the updating of the whole project is achieved.
And the building module 22 is used for building a script warehouse according to the original script information.
Specifically, after the original script information is acquired, a script warehouse needs to be constructed according to the acquired original script information, wherein deployment scripts of different types of projects are stored in a project of the script warehouse, and a specially-assigned person is responsible for maintaining the deployment scripts. If the script changes, the program is automatically synchronized to each project. The script warehouse is a database after the collection of a plurality of script information, stores all the script information, and is convenient for subsequent updating, synchronization and calling of the script information. For example, the project contains key files: yml, deploy _ laravel; yml, deploy _ docker; deploy _ go.yml; yml, deploy _ python; sh, deployment _ update; wherein: yml is used to deploy the larvel project; yml for deploying Go projects; yml is used to deploy a Docker project; yml for deploying Python project; sh defines a script that synchronizes the above files, referred to as a "sync program" in embodiments of the present invention.
And the updating module 24 is used for updating the script information in the script warehouse according to the script change data.
Specifically, when information update needs to be performed on script information in the script repository generated in the above embodiment, that is, after script change data occurs, the script change data needs to be synchronized into a corresponding script through a synchronization execution program and synchronized, so that when a subsequent project calling is performed on any script, an updated script can be directly obtained.
For example, there are a variety of item types, such as: PHP projects, front end projects, APP projects, applet projects, and the like. Each project has its deployment script, and the deployment script defines a set of deployment processes, and the different types of project processes are not identical. These deployment scripts are not invariable and can be changed at any time according to actual needs, but must be changed by the administrator. There is a deployment script repository storing deployment scripts for different types of projects, the file structure being substantially as follows: a deployment script 1.0 of a PHP project, a deployment script 1.1 of a front-end project, and a deployment script 1.2 of an applet project. This is illustrated by the following case: the administrator determines the deployment scripts and stores the corresponding deployment scripts in a script repository, and the file list in the current repository is as follows: PHP project deployment script 1.0, APP project deployment script 1.1, applet project deployment script 1.5. In the initialization stage, the synchronization program synchronizes each deployment script to each item, such as: synchronizing PHP project deployment script 1.0 to a PHP project, synchronizing APP project deployment script 1.1 to an APP project, and synchronizing applet project deployment script 1.5 to an applet project.
Additionally, when the administrator decides to change the deployment script, such as: the PHP project deployment script is upgraded to 1.1 from 1.0 (a cleaning cache flow is added), and the APP project deployment script is upgraded to 1.2 from 1.1 (a restart flow is added). The synchronization procedure performs the following operations: synchronizing PHP project deployment script 1.1 to a PHP project and synchronizing APP project deployment script 1.2 to an APP project. Deployment scripts are not persistent and, when they change, automatically synchronize the changing content to the corresponding project. The synchronization program of the embodiment of the present invention can be run in the following manner: and acquiring a script list in a script warehouse, carrying out the following operation aiming at each script, taking the PHP project deployment script as an example, calling API (application program interface) service provided by a code warehouse, finding out all PHP projects, downloading the PHP projects screened in the last step, configuring PHP project script data into each downloaded PHP project, and submitting the change of each PHP project to the code warehouse.
Optionally, the apparatus further comprises: and the change module is used for acquiring the script change data of the project.
Optionally, the update module includes: the splitting unit is used for splitting the original script information in the script warehouse into general script information and other script information; and the updating unit is used for updating the universal script information according to the script change data and the synchronous program.
Optionally, the splitting unit includes: and the synchronous program splits the original script information into the universal script information and the other script information through placeholders.
Specifically, in the embodiment of the present invention, a Webhook may be defined for the script repository item, and when a file in the script repository item changes, the synchronization program is executed. Executing the log example:
starting to execute the synchronous program;
----
current item www.abc.com;
item type: laravel;
comparing the default _ laravel.yml file in the script repository with the default _ laravel.yml file in the directory of www.abc.com;
the workflow file is unchanged and does not need to be continuously processed.
----
Current item xyz.abc.com;
item type: docker;
comparing the deploy _ docker.yml file in the script repository with the deploy _ docker.yml file in the directory of xyz.abc.com;
and submitting the code warehouse changed to xyz.
----
The execution of the synchronization program ends.
The key steps of the synchronous program are that when the synchronous program executes the task of the synchronous deployment script, the deployment script is divided into two parts, and only the content of the 'universal script' part is synchronized to the project:
wherein the first part is a personalized configuration of the item:
name: Deploy Laravel
env: PHP_VERSION: "7.4"
on pushing to a code warehouse
# -cuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuut- # ← place holder
The second part is a universal script:
jobs-check code
-new database build
Construction of
-synchronizing to a production server
-flush cache
And the deployment script is split by a synchronization program through a placeholder.
And the display module 26 is configured to display the updated script information.
Specifically, after the updated script information is obtained, the script information needs to be displayed through a display device for the convenience of the user to view and analyze.
According to another aspect of the embodiments of the present invention, a non-volatile storage medium is further provided, where the non-volatile storage medium includes a stored program, and the program controls, when running, a device in which the non-volatile storage medium is located to execute a script data configuration method.
Specifically, the method comprises the following steps: acquiring original script information; constructing a script warehouse according to the original script information; updating script information in the script warehouse according to script change data; and displaying the updated script information.
According to another aspect of the embodiments of the present invention, there is also provided an electronic device, including a processor and a memory; the memory is stored with computer readable instructions, and the processor is used for executing the computer readable instructions, wherein the computer readable instructions execute a script data configuration method.
Specifically, the method comprises the following steps: acquiring original script information; constructing a script warehouse according to the original script information; updating script information in the script warehouse according to script change data; and displaying the updated script information.
Through the embodiment, the technical problems that in the prior art, for the same type of project, the script operation is basically the same, the environment variables may be different, each project defines a deployment script, when modification is needed, modification is carried out according to the project condition, if a large number of projects need modification, modification must be carried out one by one, even if the modified contents are completely consistent with the prior art scheme, manual maintenance is needed, and automatic processing cannot be achieved are solved.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
In the above embodiments of the present invention, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.
In the embodiments provided in the present application, it should be understood that the disclosed technology can be implemented in other ways. The above-described embodiments of the apparatus are merely illustrative, and for example, the division of the units may be a logical division, and in actual implementation, there may be another division, for example, multiple units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, units or modules, and may be in an electrical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic or optical disk, and other various media capable of storing program codes.
The foregoing is only a preferred embodiment of the present invention, and it should be noted that, for those skilled in the art, various modifications and decorations can be made without departing from the principle of the present invention, and these modifications and decorations should also be regarded as the protection scope of the present invention.

Claims (12)

1. A script data configuration method is characterized by comprising the following steps:
acquiring original script information, wherein the original script information comprises: the script identification is used for identifying the attribute and the change information of the script;
constructing a script warehouse according to the original script information, wherein the constructing of the script warehouse according to the original script information comprises: acquiring the script warehouse space information; generating a script storage position according to the script warehouse space information and the original script information; constructing the script warehouse according to the script storage position;
updating script information in the script warehouse according to script change data;
and displaying the updated script information.
2. The method of claim 1, wherein prior to said obtaining original script information, the method further comprises:
acquiring an item activation state, wherein the item activation state comprises: activated, not activated.
3. The method of claim 1, wherein prior to said updating the script information in the script repository according to the script change data, the method further comprises:
and acquiring the script change data of the project.
4. The method of claim 1, wherein updating the script information in the script repository based on the script change data comprises:
splitting the original script information in the script warehouse into general script information and other script information;
and updating the universal script information according to the script change data and the synchronous program.
5. The method of claim 4, wherein the splitting the original script information in the script repository into universal script information and other script information comprises:
and the synchronous program splits the original script information into the universal script information and the other script information through a placeholder.
6. A script data configuring apparatus, comprising:
an obtaining module, configured to obtain original script information, where the original script information includes: the script identification is used for identifying the attribute and the change information of the script;
a building module, configured to build a script repository according to the original script information, where building the script repository according to the original script information includes: acquiring the script warehouse space information; generating a script storage position according to the script warehouse space information and the original script information; constructing the script warehouse according to the script storage position;
the updating module is used for updating the script information in the script warehouse according to the script change data;
and the display module is used for displaying the updated script information.
7. The apparatus of claim 6, further comprising:
an activation module, configured to acquire an item activation status, where the item activation status includes: activated, not activated.
8. The apparatus of claim 6, further comprising:
and the change module is used for acquiring the script change data of the project.
9. The apparatus of claim 6, wherein the update module comprises:
the splitting unit is used for splitting the original script information in the script warehouse into general script information and other script information;
and the updating unit is used for updating the universal script information according to the script change data and the synchronous program.
10. The apparatus of claim 9, wherein the splitting unit comprises:
and the synchronous program splits the original script information into the universal script information and the other script information through placeholders.
11. A non-volatile storage medium, comprising a stored program, wherein the program, when executed, controls an apparatus in which the non-volatile storage medium is located to perform the method of any of claims 1 to 5.
12. An electronic device comprising a processor and a memory; the memory has stored therein computer readable instructions for execution by the processor, wherein the computer readable instructions when executed perform the method of any one of claims 1 to 5.
CN202111063057.2A 2021-09-10 2021-09-10 Script data configuration method and device Pending CN114020305A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111063057.2A CN114020305A (en) 2021-09-10 2021-09-10 Script data configuration method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111063057.2A CN114020305A (en) 2021-09-10 2021-09-10 Script data configuration method and device

Publications (1)

Publication Number Publication Date
CN114020305A true CN114020305A (en) 2022-02-08

Family

ID=80054395

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111063057.2A Pending CN114020305A (en) 2021-09-10 2021-09-10 Script data configuration method and device

Country Status (1)

Country Link
CN (1) CN114020305A (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106250199A (en) * 2016-07-26 2016-12-21 北京北森云计算股份有限公司 The dynamic micro services call method of a kind of multilingual cloud compiling and device
CN109800006A (en) * 2018-12-28 2019-05-24 易票联支付有限公司 A kind of dissemination method, system and storage medium customizing script
CN110515629A (en) * 2019-08-09 2019-11-29 广东浪潮大数据研究有限公司 A kind of script dispositions method, device, equipment and computer readable storage medium
CN110688137A (en) * 2019-09-27 2020-01-14 支付宝(杭州)信息技术有限公司 Application delivery method and device, storage medium
CN112068874A (en) * 2020-07-30 2020-12-11 深圳市优必选科技股份有限公司 Software project continuous integration method, apparatus, terminal equipment and storage medium
CN112256318A (en) * 2020-10-26 2021-01-22 上海云轴信息科技有限公司 Construction method and equipment for dependent product
CN112346752A (en) * 2020-12-03 2021-02-09 江苏云坤信息科技有限公司 Software environment rapid deployment method based on jenkins and K3S

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106250199A (en) * 2016-07-26 2016-12-21 北京北森云计算股份有限公司 The dynamic micro services call method of a kind of multilingual cloud compiling and device
CN109800006A (en) * 2018-12-28 2019-05-24 易票联支付有限公司 A kind of dissemination method, system and storage medium customizing script
CN110515629A (en) * 2019-08-09 2019-11-29 广东浪潮大数据研究有限公司 A kind of script dispositions method, device, equipment and computer readable storage medium
CN110688137A (en) * 2019-09-27 2020-01-14 支付宝(杭州)信息技术有限公司 Application delivery method and device, storage medium
CN112068874A (en) * 2020-07-30 2020-12-11 深圳市优必选科技股份有限公司 Software project continuous integration method, apparatus, terminal equipment and storage medium
CN112256318A (en) * 2020-10-26 2021-01-22 上海云轴信息科技有限公司 Construction method and equipment for dependent product
CN112346752A (en) * 2020-12-03 2021-02-09 江苏云坤信息科技有限公司 Software environment rapid deployment method based on jenkins and K3S

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
运维@小兵: "《Shell脚本读取yml文件中的值,并替换为另一文件对应的占位符》", pages 1 - 2, Retrieved from the Internet <URL:https://blog.csdn.net/anqixiang/article/details/105445828> *

Similar Documents

Publication Publication Date Title
CN106294816B (en) Page information processing method and device
CN102819461B (en) Desktop synchronous method, device, equipment and system
US10282191B2 (en) Updating web resources
CN105302533B (en) Code synchronization method and device
CN110768833A (en) Application arrangement and deployment method and device based on kubernets
CN102946599A (en) Method for downloading application programs of mobile terminal and mobile terminal
WO2015117426A1 (en) File management method and device
CN104572644A (en) Database updating device and database updating method
JP2015535624A (en) System update method, apparatus, facility, program, and recording medium
CN109062592A (en) A kind of method and system that game numerical value is synchronous
CN108737487B (en) Data synchronization method and device, storage medium and electronic device
CN102646041A (en) Software installation method and system
CN113094439A (en) Log synchronization method, log synchronization device and computer-readable storage medium
CN105119944B (en) Application starting method and related device
CN116301951B (en) Micro-service application installation upgrading method and device based on kubernetes
CN112235639B (en) Extensible Linux smart television operating system easy to upgrade
CN103559063A (en) Update method and update system of application, application system and parameter configuration system
CN111382259A (en) Analysis method and device for APP crash logs
CN114020305A (en) Script data configuration method and device
CN112597123B (en) Data multi-version dynamic switching method and device
CN106648671B (en) Application upgrading method and terminal
CN106648618B (en) Text information generation method and device for virtual application
CN104462210A (en) Audio file prompting method and device
CN106210087A (en) The remote synchronization method and apparatus of application card
CN107871021B (en) Method and device for obtaining identification features of webpage search keywords

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20220208

RJ01 Rejection of invention patent application after publication