CN113656035B - Service operation method, device, terminal and storage medium based on git - Google Patents

Service operation method, device, terminal and storage medium based on git Download PDF

Info

Publication number
CN113656035B
CN113656035B CN202010399841.XA CN202010399841A CN113656035B CN 113656035 B CN113656035 B CN 113656035B CN 202010399841 A CN202010399841 A CN 202010399841A CN 113656035 B CN113656035 B CN 113656035B
Authority
CN
China
Prior art keywords
service
target
cloning
git
configuration file
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.)
Active
Application number
CN202010399841.XA
Other languages
Chinese (zh)
Other versions
CN113656035A (en
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.)
Shenzhen Sinosun Technology Co ltd
Original Assignee
Shenzhen Sinosun Technology 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 Shenzhen Sinosun Technology Co ltd filed Critical Shenzhen Sinosun Technology Co ltd
Priority to CN202010399841.XA priority Critical patent/CN113656035B/en
Publication of CN113656035A publication Critical patent/CN113656035A/en
Application granted granted Critical
Publication of CN113656035B publication Critical patent/CN113656035B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/40Transformation of program code
    • G06F8/41Compilation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/61Installation
    • G06F8/63Image based installation; Cloning; Build to order
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/71Version control; Configuration management
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Security & Cryptography (AREA)
  • Stored Programmes (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The application discloses a service operation method, a device, a terminal and a readable storage medium based on git, wherein the service operation method based on git obtains a current target service to be operated based on git; acquiring operation demand information of the target service; and operating the target service in batches based on the operation requirement information. According to the method and the device, the service operation efficiency based on the git can be improved.

Description

Service operation method, device, terminal and storage medium based on git
Technical Field
The present invention relates to the field of computer service operation management technologies, and in particular, to a service operation method, device, terminal and computer readable storage medium based on git.
Background
At present, although git is a better code management tool, there are still some inconvenient places facing some businesses, for example, services can only clone one by one, compiling programs can be executed by compiling the services to each service compiling directory in turn, the services can only upload one by one, and the like, that is, the service operation based on git needs to repeatedly execute the same operation, which results in complex operation process and long time consumption. It follows that current git-based services operate inefficiently.
Disclosure of Invention
The main purpose of the present application is to provide a service operation method, device, terminal and computer storage medium based on git, which aims to solve the technical problem of low service operation efficiency based on git in the prior art.
To achieve the above object, an embodiment of the present application provides a git-based service operation method, where the steps of the git-based service operation method include:
acquiring a current target service to be operated based on git;
acquiring operation demand information of the target service;
and operating the target service in batches based on the operation requirement information.
Optionally, the step of operating the target service in batches based on the operation requirement information includes:
if the operation demand information is batch cloning, acquiring target cloning service;
acquiring a first configuration file of the target clone service;
and based on the target cloning service and the first configuration file, cloning the target cloning service in batches.
Optionally, the step of batch cloning the target cloning service based on the target cloning service and the first configuration file includes:
executing a preset cloning sub-script;
acquiring a first folder generated by the preset cloning sub-script under the same-level directory of the first configuration file;
and acquiring a downloading result of downloading the target cloning service in the first configuration file to the first folder by the preset cloning sub-script so as to clone the target cloning service in batches.
Optionally, the step of operating the target service in batches based on the operation requirement information further includes:
if the operation demand information is compiled in batches, acquiring target compiling service;
acquiring a second configuration file of the target compiling service;
and compiling the target compiling service in batches based on the target compiling service and the second configuration file.
Optionally, the step of compiling the target compiling service in batches based on the target compiling service and the second configuration file includes:
executing a preset compiling sub-script;
acquiring a compiling service package generated by compiling the target compiling service in the second configuration file by the preset compiling sub-script;
acquiring a second folder generated by the preset compiling sub-script under the same-level directory of the second configuration file;
and obtaining a copying result of copying the compiling service package to the second folder by the preset compiling sub-script so as to compile the target compiling service in batches.
Optionally, the step of operating the target service in batches based on the operation requirement information further includes:
if the operation demand information is uploaded in batches, acquiring a target uploading service;
acquiring a third configuration file of the target uploading service;
and uploading the target uploading service in batches based on the target uploading service and the third configuration file.
Optionally, the step of uploading the target uploading service in batches based on the target uploading service and the third configuration file includes:
executing a preset uploading sub-script;
acquiring a version number of the third configuration file;
acquiring an update service package generated by the preset uploading sub-script based on the target uploading service in the third configuration file;
and acquiring an uploading result of uploading the update service package to a preset storage position by the preset uploading sub-script based on the version number so as to upload the target uploading service in batches.
The present application also provides a git-based service operation device, which includes:
the first acquisition module is used for acquiring the current target service to be operated based on the git;
the second acquisition module is used for acquiring the operation demand information of the target service;
and the operation module is used for operating the target service in batches based on the operation requirement information.
Optionally, the operation module includes:
the first acquisition unit is used for acquiring target cloning service if the operation demand information is batch cloning;
a second obtaining unit, configured to obtain a first configuration file of the target clone service;
and the batch cloning unit is used for batch cloning the target cloning service based on the target cloning service and the first configuration file.
Optionally, the batch cloning unit comprises:
the first execution subunit is used for executing a preset cloning sub-script;
the first acquisition subunit is used for acquiring a first folder generated by the preset cloning sub-script under the same-level directory of the first configuration file;
and the second acquisition subunit is used for acquiring a downloading result of downloading the target cloning service in the first configuration file to the first folder by the preset cloning sub-script so as to clone the target cloning service in batches.
Optionally, the operation module further includes:
the third acquisition unit is used for acquiring target compiling service if the operation demand information is compiled in batches;
a fourth obtaining unit, configured to obtain a second configuration file of the target compiling service;
and the batch compiling unit is used for compiling the target compiling service in batches based on the target compiling service and the second configuration file.
Optionally, the batch compiling unit includes:
the second execution subunit is used for executing a preset compiling sub-script;
a third obtaining subunit, configured to obtain a compiling service package generated by compiling the target compiling service in the second configuration file by using the preset compiling sub-script;
a fourth obtaining subunit, configured to obtain a second folder generated by the preset compiling sub-script under the same-level directory of the second configuration file;
and a fifth obtaining subunit, configured to obtain a copy result of the preset compiling sub-script to copy the compiling service package to the second folder, so as to compile the target compiling service in batch.
Optionally, the operation module further includes:
a fifth obtaining unit, configured to obtain a target uploading service if the operation requirement information is batch uploading;
a sixth obtaining unit, configured to obtain a third configuration file of the target uploading service;
and the batch uploading unit is used for uploading the target uploading service in batches based on the target uploading service and the third configuration file.
Optionally, the batch uploading unit includes:
the third execution subunit is used for executing a preset uploading sub-script;
a sixth obtaining subunit, configured to obtain a version number of the third configuration file;
a seventh obtaining subunit, configured to obtain an update service package generated by the preset upload sub-script based on the target upload service in the third configuration file;
and the eighth acquisition subunit is used for acquiring an uploading result of uploading the update service package to a preset storage position based on the version number by the preset uploading sub-script so as to upload the target uploading service in batches.
The application also provides a terminal, the terminal includes: the system comprises a memory, a processor and a git-based service operation program stored on the memory and capable of running on the processor, wherein the git-based service operation program realizes the steps of the git-based service operation method when being executed by the processor.
The present application also provides a computer storage medium having stored thereon a git-based service operation program which, when executed by a processor, implements the steps of the git-based service operation method as described above.
The application discloses a service operation method, a device, a terminal and a computer readable storage medium based on git, wherein the service operation method based on git obtains a target service to be operated based on git currently; acquiring operation demand information of the target service; and operating the target service in batches based on the operation requirement information. According to the method and the device for operating the target service, the script batch operation of the target service can be executed according to the operation requirement information of the target service to be operated, so that the service operation efficiency based on git is improved.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the application and together with the description, serve to explain the principles of the application.
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings that are required to be used in the description of the embodiments or the prior art will be briefly described below, and it will be obvious to those skilled in the art that other drawings can be obtained from these drawings without inventive effort.
Fig. 1 is a schematic hardware structure of an optional terminal according to an embodiment of the present application;
FIG. 2 is a flowchart of a first embodiment of a git-based service operation method of the present application;
FIG. 3 is a flowchart of a second embodiment of a git-based service operation method of the present application;
FIG. 4 is a flowchart of a third embodiment of a git-based service operation method of the present application;
FIG. 5 is a flowchart of a fourth embodiment of a git-based service operation method of the present application;
FIG. 6 is a flowchart of a fifth embodiment of a git-based service operation method of the present application;
FIG. 7 is a flowchart of a sixth embodiment of a git-based service operation method of the present application;
FIG. 8 is a flowchart of a seventh embodiment of a git-based service operation method of the present application;
fig. 9 is a schematic diagram of functional modules of the service operation device based on git.
The realization, functional characteristics and advantages of the present application will be further described with reference to the embodiments, referring to the attached drawings.
Detailed Description
It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the present application.
In the following description, suffixes such as "module", "component", or "unit" for representing elements are used only for facilitating the description of the present application, and are not of specific significance per se. Thus, "module," "component," or "unit" may be used in combination.
As shown in fig. 1, fig. 1 is a schematic diagram of a terminal structure of a hardware running environment according to an embodiment of the present application.
The terminal can be a fixed terminal, such as intelligent equipment of the Internet of things, and comprises intelligent home furnishings including intelligent air conditioners, intelligent electric lamps, intelligent power supplies, intelligent routers and the like; the mobile terminal can also be a mobile terminal, and comprises a plurality of networking devices such as a smart phone, a wearable networking AR/VR device, a smart sound box, an automatic driving automobile and the like.
As shown in fig. 1, the architecture design of the git-based service operation terminal includes nodes and servers, and the device structure may include: a processor 1001, such as a CPU, memory 1005, and a communication bus 1002. Wherein a communication bus 1002 is used to enable connected communication between the processor 1001 and a memory 1005. The memory 1005 may be a high-speed RAM memory or a stable memory (non-volatile memory), such as a disk memory. The memory 1005 may also optionally be a storage device separate from the processor 1001 described above.
Optionally, the git-based service operation terminal may further include a user interface, a network interface, a camera, an RF (Radio Frequency) circuit, a sensor, an audio circuit, a WiFi module, and the like. The user interface may include a Display screen (Display), touch screen, camera (including AR/VR devices), etc., and the optional user interface may also include standard wired interfaces, wireless interfaces. The network interface may optionally include a standard wired interface, a wireless interface (e.g., WI-FI interface, bluetooth interface, probe interface, 3G/4G/5G networking communication interface, etc.).
It will be appreciated by those skilled in the art that the git-based service operation terminal structure shown in fig. 1 does not constitute a limitation of the git-based service operation terminal, and may include more or less components than illustrated, or may combine certain components, or may be a different arrangement of components.
As shown in fig. 1, an operating system, a network communication module, and an early wake-up program may be included in a memory 1005, which is a type of computer storage medium. The operating system is a program that manages and controls the hardware and software resources of the git-based service operating terminal, supporting the operation of the git-based service operating program and other software and/or programs. The network communication module is used to implement communication between components inside the memory 1005 and communication with other hardware and software in the git-based service operation terminal.
In the git-based service operation terminal shown in fig. 1, the processor 1001 is configured to execute a git-based service operation program stored in the memory 1005, and perform the following operations:
acquiring a current target service to be operated based on git;
acquiring operation demand information of the target service;
and operating the target service in batches based on the operation requirement information.
Further, the processor 1001 may call the git-based service operation program stored in the memory 1005, and further perform the following operations:
if the operation demand information is batch cloning, acquiring target cloning service;
acquiring a first configuration file of the target clone service;
and based on the target cloning service and the first configuration file, cloning the target cloning service in batches.
Further, the processor 1001 may call the git-based service operation program stored in the memory 1005, and further perform the following operations:
executing a preset cloning sub-script;
acquiring a first folder generated by the preset cloning sub-script under the same-level directory of the first configuration file;
and acquiring a downloading result of downloading the target cloning service in the first configuration file to the first folder by the preset cloning sub-script so as to clone the target cloning service in batches.
Further, the processor 1001 may call the git-based service operation program stored in the memory 1005, and further perform the following operations:
if the operation demand information is compiled in batches, acquiring target compiling service;
acquiring a second configuration file of the target compiling service;
and compiling the target compiling service in batches based on the target compiling service and the second configuration file.
Further, the processor 1001 may call the git-based service operation program stored in the memory 1005, and further perform the following operations:
executing a preset compiling sub-script;
acquiring a compiling service package generated by compiling the target compiling service in the second configuration file by the preset compiling sub-script;
acquiring a second folder generated by the preset compiling sub-script under the same-level directory of the second configuration file;
and obtaining a copying result of copying the compiling service package to the second folder by the preset compiling sub-script so as to compile the target compiling service in batches.
Further, the processor 1001 may call the git-based service operation program stored in the memory 1005, and further perform the following operations:
if the operation demand information is uploaded in batches, acquiring a target uploading service;
acquiring a third configuration file of the target uploading service;
and uploading the target uploading service in batches based on the target uploading service and the third configuration file.
Further, the processor 1001 may call the git-based service operation program stored in the memory 1005, and further perform the following operations:
executing a preset uploading sub-script;
acquiring a version number of the third configuration file;
acquiring an update service package generated by the preset uploading sub-script based on the target uploading service in the third configuration file;
and acquiring an uploading result of uploading the update service package to a preset storage position by the preset uploading sub-script based on the version number so as to upload the target uploading service in batches.
Based on the above hardware structure, various embodiments of the git-based service operation method of the present application are presented.
Referring to fig. 2, a first embodiment of a git-based service operation method of the present application provides a git-based service operation method, which includes:
step S10, obtaining a target service to be operated based on the git currently;
in the technical scheme disclosed in the application, git is an open-source distributed version control system used for agilely and efficiently processing any small or large item. In the development process, since the git has rich functions, for example, a complete git warehouse (comprising code and version information) is cloned from a server to a single machine; creating branches and modifying codes according to different development purposes on own machines; submitting code on a branch created on the stand-alone machine itself; merging branches on a single machine, etc., therefore, git is a better code management tool and is deeply favored by developers. A service operating system refers to a program, routine, or process that performs specified system functions in order to support other programs. A target service refers to a program, routine or process that a user intends to operate, i.e., to operate.
However, although git is a better code management tool, in some places where some services are still inconvenient, for example, services can only clone one by one, compilation programs can be executed by compiling the services to each service compiling directory in turn, services can only upload one by one, and the like, that is, service operations based on git need to repeatedly execute the same operations, which results in complicated operation process and long time consumption. Therefore, the service operation efficiency based on the git is low at present, and therefore the service operation efficiency based on the git is improved by using the service operation method, the device, the terminal and the computer readable storage medium based on the git.
Step S20, obtaining operation demand information of the target service;
in the technical scheme disclosed in the application, the operation requirement information of the target service refers to the intention of a user to operate the target service, and the intention comprises batch cloning, batch compiling and batch uploading of the target service.
Step S30, based on the operation requirement information, operating the target service in batches.
In the technical scheme disclosed by the application, after the operation requirement information of the inverted target service is acquired, the target service is operated in batches based on the operation requirement information, so that repeated operation is simplified, and the operation efficiency of the target service is improved.
In this embodiment, a service operation method based on git obtains a target service to be operated currently based on git; acquiring operation demand information of the target service; and operating the target service in batches based on the operation requirement information. According to the method and the device for operating the target service, the target service can be operated in batches according to the operation requirement information of the target service to be operated, so that the service operation efficiency based on git is improved.
Further, in a second embodiment of the present application of the git-based service operation method, referring to fig. 3, step S30 includes:
step S31, if the operation demand information is batch cloning, obtaining a target cloning service;
in the technical scheme disclosed in the application, the operation requirement information is batch cloning and refers to batch cloning target service. The target cloning service refers to a service requiring cloning, and the number of target cloning services is greater than one.
Step S32, a first configuration file of the target cloning service is obtained;
in the technical scheme disclosed in the application, the first configuration file refers to a file which is preconfigured by a user and comprises relevant information of the target clone service, and from the first configuration file, the service operation program based on git can take the read service as the target clone service. That is, the user selects the relevant identification of the service to be cloned into the first configuration file, so that the service with the relevant identification in the first configuration file is used as the target clone service.
And step S33, the target cloning service is cloned in batches based on the target cloning service and the first configuration file.
In the technical scheme disclosed by the application, after the target cloning service and the first configuration file are obtained, the service operation program based on the git can clone the target cloning service in batches according to the target cloning service and the first configuration file.
In this embodiment, the user selects the relevant identifier of the service to be cloned into the first configuration file to serve as the target cloning service, then the service operation program based on git obtains the target cloning service and the first configuration file, and the target cloning service in the first configuration file is cloned in batches by the preset cloning sub-script according to the target cloning service and the first configuration file, so that the manual repetition is avoided, and the cloning efficiency of the target cloning service based on git is improved.
Further, in a third embodiment of the git-based service operation method of the present application, referring to fig. 4, step S33 includes:
step S331, executing a preset cloning sub-script;
in the technical scheme disclosed by the application, the preset cloning sub-script refers to a script included in a service operation program based on git, and the function realized by the preset cloning sub-script is to clone target cloning services in batches, so that the cloning efficiency of the target cloning services is improved.
Step S332, a first folder generated by the preset cloning sub-script under the same-level directory of the first configuration file is obtained;
in the technical scheme disclosed in the application, after executing the preset cloning sub-script, the preset cloning sub-script generates a folder under the peer directory of the first configuration file, which is named as a first folder.
Step S333, obtaining a downloading result of the preset cloning sub-script to download the target cloning service in the first configuration file to the first folder, so as to clone the target cloning service in batches.
In the technical scheme disclosed by the application, after the preset cloning sub-script generates the first folder under the same-level catalogue of the first configuration file, the preset cloning sub-script downloads the target cloning service in the first configuration file to the first folder, so that the batch cloning of the target cloning service is realized.
In this embodiment, the service operation program based on git executes a preset cloning sub-script first, the preset cloning sub-script generates a first folder under the peer directory of the first configuration file, the preset cloning sub-script downloads the target cloning service in the first configuration file to the first folder, and finally the service operation program based on git obtains a downloading result, thereby realizing batch cloning of the target cloning service. The main function of the preset cloning sub-script is to generate a ssp folder under the same-level directory by configuring an excel file and then executing batch_clone.py, and clone related services configured in the excel file under the folder, so that the function of cloning a plurality of services by one key is basically realized, the batch cloning of target cloning services is realized, repeated and tedious cloning of target cloning services one by one is avoided, and the cloning efficiency of the target cloning services based on git is improved.
Further, in a fourth embodiment of the git-based service operation method of the present application, referring to fig. 5, step S30 further includes:
step S34, if the operation demand information is batch compiling, acquiring a target compiling service;
in the technical scheme disclosed in the application, compiling refers to performing a series of processing on a source file of a high-level language to finally obtain an executable file of a binary code. The operation requirement information is compiled in batches and refers to a target service compiled in batches. The target compiling service refers to a service that needs to be compiled, and the number of target compiling services is greater than one.
Step S35, a second configuration file of the target compiling service is obtained;
in the technical scheme disclosed in the application, the second configuration file refers to a file which is preconfigured by a user and comprises relevant information of the target compiling service, and from the second configuration file, the service operation program based on git can take the read service as the target compiling service. That is, the user selects the relevant identification of the service to be compiled into the second configuration file, so that the service with the relevant identification in the second configuration file is taken as the target compiled service.
Step S36, compiling the target compiling service in batches based on the target compiling service and the second configuration file.
In the technical scheme disclosed by the application, after the target compiling service and the second configuration file are obtained, the service operation program based on the git can compile the target compiling service in batches according to the target compiling service and the second configuration file.
In this embodiment, the user selects the relevant identifier of the service to be compiled into the second configuration file to serve as the target compiling service, then the service operating program based on git obtains the target compiling service and the second configuration file, and the target compiling service in the second configuration file is compiled in batches by the preset compiling sub-script according to the target compiling service and the second configuration file, so that the manual repetition of the target compiling service one by one is avoided, and the compiling efficiency of the target compiling service based on git is improved.
Further, in a fifth embodiment of the git-based service operation method of the present application, referring to fig. 6, step S36 includes:
step S361, executing a preset compiling sub-script;
in the technical scheme disclosed by the application, the preset compiling sub-script refers to a script included in a service operation program based on git, and the function realized by the preset compiling sub-script is to compile target compiling services in batches, so that the compiling efficiency of the target compiling services is improved.
Step S362, acquiring a compiling service package generated by compiling the target compiling service in the second configuration file by the preset compiling sub-script;
in the technical scheme disclosed in the application, the compiling service package refers to a package generated by packaging the target compiling service, that is, the compiling service includes the target compiling service.
Step S363, obtaining a second folder generated by the preset compiling sub-script under the same-level directory of the second configuration file;
in the technical scheme disclosed in the application, after executing the preset compiling sub-script, the preset compiling sub-script generates a folder under the peer directory of the second configuration file, which is named as a second folder.
Step S364, obtaining a copy result of the preset compiling sub-script to copy the compiling service package to the second folder, so as to compile the target compiling service in batch.
In the technical scheme disclosed by the application, after a compiling service package generated by compiling target compiling services in a second configuration file by a preset compiling sub-script is obtained, and a second folder generated by the preset compiling sub-script under the same-level directory of the second configuration file is obtained, a copying result of copying the compiling service package to the second folder by the preset compiling sub-script is finally obtained, so that batch compiling of the target compiling services is realized.
In this embodiment, a service operation program based on git first executes a preset compiling sub-script, the preset compiling sub-script compiles a target compiling service in a second configuration file, generates a compiling service package, and generates a second folder under a peer directory of the second configuration file; and then copying the compiling service package to a second folder by presetting the compiling sub-script, and finally obtaining a copying result based on the service operation program of the git, thereby realizing batch compiling target compiling service. The function of presetting the compiling sub-script is to pack all configured services under the same-level catalog, and copy the generated tar package under the tar folder of the catalog, so that the functions of one-key packing and managing the tar package are realized, and the app.json file is required to be configured according to the requirement when the script is used, so that batch compiling of target compiling services is realized, repeated and tedious compiling of target compiling services one by one is avoided, and the compiling efficiency of the target compiling services based on git is improved.
Further, in a sixth embodiment of the git-based service operation method of the present application, referring to fig. 7, step S30 further includes:
step S37, if the operation demand information is uploaded in batches, acquiring a target uploading service;
in the technical scheme disclosed in the application, the batch uploading of the operation requirement information refers to batch uploading of target services. The target upload service refers to a service that needs to be uploaded, and the number of target upload services is greater than one.
Step S38, a third configuration file of the target uploading service is obtained;
in the technical scheme disclosed in the application, the third configuration file refers to a file which is preconfigured by a user and includes information related to the target uploading service, and from the third configuration file, the service operation program based on the git can take the read service as the target uploading service. That is, the user selects the relevant identifier of the service to be uploaded into the third configuration file, so that the service with the relevant identifier in the third configuration file is used as the target uploading service.
It should be noted that, if the target compiled service is compiled and then is used as the target uploading service, the third configuration file is the same as the second configuration file, so only the service in the second configuration file needs to be acquired as the target uploading service, that is, the third configuration file is acquired.
Step S39, uploading the target uploading service in batches based on the target uploading service and the third configuration file.
In the technical scheme disclosed by the application, after the target uploading service and the third configuration file are obtained, the service operation program based on the git can upload the target uploading service in batches according to the target uploading service and the third configuration file.
In this embodiment, the user selects the relevant identifier of the service to be uploaded to the third configuration file as the target uploading service, then the service operating program based on the git obtains the target uploading service and the third configuration file, and the target uploading service in the third configuration file is uploaded in batches by the preset uploading sub-script according to the target uploading service and the third configuration file, so that the problem that the target uploading service is uploaded one by one repeatedly and fussy manually is avoided, and the uploading efficiency of the target uploading service based on the git is improved.
Further, in a seventh embodiment of the git-based service operation method of the present application, referring to fig. 8, step S39 includes:
step S391, executing a preset uploading sub-script;
in the technical scheme disclosed by the application, the preset uploading sub-script refers to a script included in a service operation program based on git, and the function realized by the preset uploading sub-script is to upload target uploading services in batches, so that the uploading efficiency of the target uploading services is improved.
Step S392, obtaining the version number of the third configuration file;
in the technical scheme disclosed by the application, after the preset uploading sub-script is executed, the preset uploading sub-script can generate the version number of the third configuration file, so that the target uploading service can be conveniently uploaded according to the version number of the third configuration file, and version confusion is avoided.
Step S393, obtaining an update service package generated by the preset upload sub-script based on the target upload service in the third configuration file;
in the technical scheme disclosed in the application, the update service package refers to a package generated by packaging the target uploading service, that is, the update service includes the target uploading service.
Step S394, obtaining an uploading result of the preset uploading sub-script for uploading the update service package to a preset storage location based on the version number, so as to upload the target uploading service in batches.
In the technical scheme disclosed by the application, after the preset uploading sub-script is executed, the preset uploading sub-script generates the version number of the third configuration file and uploads the update service package to the uploading result of the preset storage position according to the version number of the third configuration file, so that batch uploading target uploading service is realized.
In this embodiment, the git-based service operation program first executes a preset upload sub-script, which generates a version number of a third configuration file and an update service package generated based on a target upload service in the third configuration file; and uploading the updated service package to a preset storage position by the preset uploading sub-script based on the version number, and finally obtaining an uploading result by a service operation program based on the git, thereby realizing batch uploading target uploading service. The function realized by the preset uploading sub-script is to update the service jar package in batches and upload the service jar package to the maven warehouse, so that the batch uploading target uploading service is realized, repeated and tedious uploading of the target uploading service one by one is avoided, and the uploading efficiency of the target uploading service based on git is improved.
In the technical scheme disclosed by the application, the preset cloning sub-script is executed, so that the target cloning service can be cloned in batches; the target cloning service is cloned and commanded in batches, and then a preset compiling sub-script is executed, so that the target compiling service can be compiled in batches; after compiling the target compiling service in batches, executing the preset uploading sub-script, and uploading the target uploading service in batches, so that the service can be cloned, compiled and uploaded in batches by the script in batches, and repeated cloning, compiling or uploading by manpower is avoided, and the operating efficiency of the service based on git is improved.
In addition, referring to fig. 9, an embodiment of the present invention further provides a service operation device based on git, where the service operation device based on git includes:
the first acquisition module is used for acquiring the current target service to be operated based on the git;
the second acquisition module is used for acquiring the operation demand information of the target service;
and the operation module is used for operating the target service in batches based on the operation requirement information.
The application also provides a terminal, the terminal includes: the system comprises a memory, a processor and a git-based service operation program which is stored in the memory and can run on the processor, wherein the git-based service operation program realizes the steps of the git-based service operation method when being executed by the processor.
The present application also provides a computer readable storage medium, on which a git-based service operation program is stored, which when executed by a processor, implements the steps of the above-mentioned git-based service operation method.
In the embodiments of the service operation method, the device, the terminal and the readable storage medium based on the git in the application, all technical features of each embodiment of the service operation method based on the git are included, and the expansion and explanation contents of the description are basically the same as those of each embodiment of the service operation method based on the git, which are not repeated herein.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or system that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or system. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or system that comprises the element.
The foregoing embodiment numbers of the present application are merely for describing, and do not represent advantages or disadvantages of the embodiments.
From the above description of the embodiments, it will be clear to those skilled in the art that the above-described embodiment method may be implemented by means of software plus a necessary general hardware platform, but of course may also be implemented by means of hardware, but in many cases the former is a preferred embodiment. Based on such understanding, the technical solution of the present application may be embodied essentially or in a part contributing to the prior art in the form of a software product stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk), comprising several instructions for causing a terminal device (which may be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to perform the method described in the embodiments of the present application.
The foregoing description is only of the preferred embodiments of the present application, and is not intended to limit the scope of the claims, and all equivalent structures or equivalent processes using the descriptions and drawings of the present application, or direct or indirect application in other related technical fields are included in the scope of the claims of the present application.

Claims (8)

1. A git-based service operation method, characterized in that the git-based service operation method comprises the following steps:
acquiring a current target service to be operated based on git;
acquiring operation demand information of the target service;
operating the target service in batches based on the operation demand information;
the step of operating the target service in batches based on the operation requirement information comprises the following steps:
if the operation demand information is batch cloning, acquiring target cloning service;
acquiring a first configuration file of the target clone service;
based on the target cloning service and the first configuration file, cloning the target cloning service in batches;
the step of cloning the target cloning service in batches based on the target cloning service and the first configuration file comprises the following steps:
executing a preset cloning sub-script;
acquiring a first folder generated by the preset cloning sub-script under the same-level directory of the first configuration file;
and acquiring a downloading result of downloading the target cloning service in the first configuration file to the first folder by the preset cloning sub-script so as to clone the target cloning service in batches.
2. The git-based service operation method according to claim 1, wherein the step of batch-operating the target service based on the operation demand information further comprises:
if the operation demand information is compiled in batches, acquiring target compiling service;
acquiring a second configuration file of the target compiling service;
and compiling the target compiling service in batches based on the target compiling service and the second configuration file.
3. The git-based service operation method according to claim 2, wherein the step of compiling the target compilation service in bulk based on the target compilation service and the second configuration file comprises:
executing a preset compiling sub-script;
acquiring a compiling service package generated by compiling the target compiling service in the second configuration file by the preset compiling sub-script;
acquiring a second folder generated by the preset compiling sub-script under the same-level directory of the second configuration file;
and obtaining a copying result of copying the compiling service package to the second folder by the preset compiling sub-script so as to compile the target compiling service in batches.
4. The git-based service operation method according to claim 1, wherein the step of batch-operating the target service based on the operation demand information further comprises:
if the operation demand information is uploaded in batches, acquiring a target uploading service;
acquiring a third configuration file of the target uploading service;
and uploading the target uploading service in batches based on the target uploading service and the third configuration file.
5. The git-based service operation method of claim 4, wherein the step of bulk uploading the target upload service based on the target upload service and the third profile comprises:
executing a preset uploading sub-script;
acquiring a version number of the third configuration file;
acquiring an update service package generated by the preset uploading sub-script based on the target uploading service in the third configuration file;
and acquiring an uploading result of uploading the update service package to a preset storage position by the preset uploading sub-script based on the version number so as to upload the target uploading service in batches.
6. A git-based service operation device, characterized in that the git-based service operation device comprises:
the first acquisition module is used for acquiring the current target service to be operated based on the git;
the second acquisition module is used for acquiring the operation demand information of the target service;
the operation module is used for operating the target service in batches based on the operation demand information;
wherein, the operation module is further used for:
if the operation demand information is batch cloning, acquiring target cloning service;
acquiring a first configuration file of the target clone service;
based on the target cloning service and the first configuration file, cloning the target cloning service in batches;
the step of cloning the target cloning service in batches based on the target cloning service and the first configuration file comprises the following steps:
executing a preset cloning sub-script;
acquiring a first folder generated by the preset cloning sub-script under the same-level directory of the first configuration file;
and acquiring a downloading result of downloading the target cloning service in the first configuration file to the first folder by the preset cloning sub-script so as to clone the target cloning service in batches.
7. A terminal, the terminal comprising: memory, a processor and a git-based service operation program stored on the memory and executable on the processor, which when executed by the processor implements the steps of the git-based service operation method according to any one of claims 1 to 5.
8. A storage medium having stored thereon a git-based service operation program which, when executed by a processor, implements the steps of the git-based service operation method of any of claims 1 to 5.
CN202010399841.XA 2020-05-12 2020-05-12 Service operation method, device, terminal and storage medium based on git Active CN113656035B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010399841.XA CN113656035B (en) 2020-05-12 2020-05-12 Service operation method, device, terminal and storage medium based on git

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010399841.XA CN113656035B (en) 2020-05-12 2020-05-12 Service operation method, device, terminal and storage medium based on git

Publications (2)

Publication Number Publication Date
CN113656035A CN113656035A (en) 2021-11-16
CN113656035B true CN113656035B (en) 2024-02-27

Family

ID=78477028

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010399841.XA Active CN113656035B (en) 2020-05-12 2020-05-12 Service operation method, device, terminal and storage medium based on git

Country Status (1)

Country Link
CN (1) CN113656035B (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109460252A (en) * 2018-09-25 2019-03-12 中国平安人寿保险股份有限公司 Configuration file processing method, device and computer equipment based on git
CN109783076A (en) * 2018-12-14 2019-05-21 深圳壹账通智能科技有限公司 Code administration method, apparatus, equipment and storage medium based on git

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109460252A (en) * 2018-09-25 2019-03-12 中国平安人寿保险股份有限公司 Configuration file processing method, device and computer equipment based on git
CN109783076A (en) * 2018-12-14 2019-05-21 深圳壹账通智能科技有限公司 Code administration method, apparatus, equipment and storage medium based on git

Also Published As

Publication number Publication date
CN113656035A (en) 2021-11-16

Similar Documents

Publication Publication Date Title
CN103108032B (en) Method and the relevant device of application program are downloaded and managed to many equipment collaborations
CN101861567A (en) Methods, apparatuses and computer program product for automatic download of software dependencies on installation
CN111147337A (en) Network distribution method of third-party equipment, terminal equipment and computer readable storage medium
CN109725912B (en) Application program configuration method, device, terminal, server and readable storage medium
CN108345467B (en) Version tree file updating method and device
CN108376078A (en) Upgrade method, device and the household appliance of equipment
CN111045683A (en) Applet code compiling method, device, equipment and medium
CN107463405B (en) Application program updating method and device
CN112506518B (en) Compiling method and device based on configuration file
CN103701914A (en) Off-line downloading method and device for serial resources
CN113064685A (en) H5 page loading method and device
CN113656035B (en) Service operation method, device, terminal and storage medium based on git
CN114896003A (en) Page configuration method and device, storage medium and electronic device
CN115686606A (en) Method, device, system and medium for displaying item dependency tree
CN110413292B (en) Light application installation method of application program, mobile terminal and storage medium
WO2020199597A1 (en) Blockchain node management agent service installation method, electronic apparatus and storage medium
CN104461583A (en) Method and device for calling resource type application and mobile terminal
CN114461304A (en) Configuration file determining method and device, storage medium and electronic equipment
CN112311818B (en) Method, device, terminal and storage medium for downloading applet data packet
CN109871560B (en) Method and device for operating target model
CN114697214B (en) System and method for realizing appointed upgrade of intelligent equipment by dynamically configuring upgrade package
WO2023020071A1 (en) Upgrade package acquisition method and smart device
CN115982493A (en) Page jump method and device, storage medium and electronic device
CN114090145B (en) Page jump determining method and device, storage medium and electronic device
CN115098117A (en) uniApp-based automatic packaging method, computing device and storage medium

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
GR01 Patent grant
GR01 Patent grant