CN113568623A - Application deployment method and device and electronic equipment - Google Patents

Application deployment method and device and electronic equipment Download PDF

Info

Publication number
CN113568623A
CN113568623A CN202110839265.0A CN202110839265A CN113568623A CN 113568623 A CN113568623 A CN 113568623A CN 202110839265 A CN202110839265 A CN 202110839265A CN 113568623 A CN113568623 A CN 113568623A
Authority
CN
China
Prior art keywords
deployment
script
application
environment variable
deployed
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
CN202110839265.0A
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.)
Shanghai Qiyue Information Technology Co Ltd
Original Assignee
Shanghai Qiyue Information 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 Shanghai Qiyue Information Technology Co Ltd filed Critical Shanghai Qiyue Information Technology Co Ltd
Priority to CN202110839265.0A priority Critical patent/CN113568623A/en
Publication of CN113568623A publication Critical patent/CN113568623A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44505Configuring for program initiating, e.g. using registry, configuration files
    • G06F9/4451User profiles; Roaming

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Stored Programmes (AREA)

Abstract

An embodiment of the present specification provides an application deployment method, which includes constructing a deployment script with an environment variable, sending the deployment script to a data warehouse for storage, setting an environment variable parameter for an application to be deployed, determining a current application to be deployed, assembling the environment variable parameter corresponding to the current application to be deployed in the deployment script, responding to a script pull request of a server, sending the assembled deployment script to the server, and using the deployment script by the server for application deployment. The deployment scripts can be shared, only differentiated parameters need to be set for each application, and the scripts do not need to be repeatedly constructed, so that the deployment efficiency is improved, and the deployment process is simplified. Through the assembly mode, the script pulling request of the server is responded and then sent to the server, and isolation among different applications is achieved.

Description

Application deployment method and device and electronic equipment
Technical Field
The present application relates to the field of computers, and in particular, to a method, an apparatus, and an electronic device for deploying an application.
Background
The deployment of the application program needs to utilize the environmental parameters, and before the application is deployed in the industry at present, the environmental parameters are obtained by constructing a deployment script with the environmental parameters and sending the deployment script to a server, and the server runs the script, so that the application is installed and deployed.
If a plurality of applications are installed and deployed in the server, a deployment script is respectively constructed for each application, so that deployment is carried out.
However, this method is labor-intensive, inefficient, and complex, and it is necessary to provide an efficient and simple deployment method.
Disclosure of Invention
The embodiment of the specification provides a method, a device and electronic equipment for deploying applications, which are used for improving deployment efficiency and simplifying deployment processes.
An embodiment of the present specification provides a method for deploying an application, including:
constructing a deployment script with environment variables, and sending the deployment script to a data warehouse for storage;
setting an environment variable parameter for an application to be deployed;
determining a current application to be deployed, assembling an environment variable parameter corresponding to the current application to be deployed into a deployment script, responding to a script pulling request of a server, and sending the assembled deployment script to the server;
and the server deploys the application by using the deployment script.
Optionally, the environment variable is a general variable of a plurality of applications, the environment variable parameter is an exclusive parameter of a current application to be deployed, and the deployment script with the environment variable is a script to be referred.
Optionally, the method further comprises:
when the server starts the application package, judging whether the local deployment script abstract information is consistent with the deployment script abstract information in the data warehouse, and if not, sending a script pulling request.
Optionally, after the step of setting the environment variable parameter for the application to be deployed, the method further includes:
and updating the summary information of the deployment script for the application to be deployed and storing the summary information in a data warehouse.
Optionally, the method further comprises:
the deployment scripts are assembled through environment variable parameters corresponding to different applications to be deployed to generate different deployment scripts for deploying different applications.
Optionally, the server performs application deployment by using the deployment script, including:
and creating a deployment process, acquiring the environment variable parameters corresponding to the environment variables from the deployment script, assigning the environment variable parameters to the current deployment process, and deploying the application.
Optionally, the method further comprises:
and carrying out the deployment of a plurality of applications in parallel by utilizing a plurality of concurrent processes.
Optionally, the setting an environment variable parameter for the application to be deployed includes:
and creating a mapping table of the application identifier and the environment variable parameter, configuring the environment variable parameter through the release platform, and writing the environment variable parameter into the mapping table.
An embodiment of the present specification further provides an apparatus for deploying an application, including:
the script construction module is used for constructing a deployment script with an environment variable and sending the deployment script to a data warehouse for storage;
the parameter setting module is used for setting environment variable parameters for the application to be deployed;
the script assembly module is used for determining the current application to be deployed, assembling the environment variable parameters corresponding to the current application to be deployed into the deployment script, responding to a script pull request of the server and sending the assembled deployment script to the server;
and the server performs application deployment by using the deployment script.
Optionally, the environment variable is a general variable of a plurality of applications, the environment variable parameter is an exclusive parameter of a current application to be deployed, and the deployment script with the environment variable is a script to be referred.
Optionally, the method further comprises:
when the server starts the application package, judging whether the local deployment script abstract information is consistent with the deployment script abstract information in the data warehouse, and if not, sending a script pulling request.
Optionally, after the step of setting the environment variable parameter for the application to be deployed, the method further includes:
and updating the summary information of the deployment script for the application to be deployed and storing the summary information in a data warehouse.
Optionally, the method further comprises:
the deployment scripts are assembled through environment variable parameters corresponding to different applications to be deployed to generate different deployment scripts for deploying different applications.
Optionally, the server performs application deployment by using the deployment script, including:
and creating a deployment process, acquiring the environment variable parameters corresponding to the environment variables from the deployment script, assigning the environment variable parameters to the current deployment process, and deploying the application.
Optionally, the method further comprises:
and carrying out the deployment of a plurality of applications in parallel by utilizing a plurality of concurrent processes.
Optionally, the setting an environment variable parameter for the application to be deployed includes:
and creating a mapping table of the application identifier and the environment variable parameter, configuring the environment variable parameter through the release platform, and writing the environment variable parameter into the mapping table.
An embodiment of the present specification further provides an electronic device, where the electronic device includes:
a processor; and the number of the first and second groups,
a memory storing computer-executable instructions that, when executed, cause the processor to perform any of the methods described above.
The present specification also provides a computer readable storage medium, wherein the computer readable storage medium stores one or more programs which, when executed by a processor, implement any of the above methods.
In various technical solutions provided in the embodiments of the present description, a deployment script with an environment variable is constructed, and is sent to a data warehouse for storage, an environment variable parameter is set for an application to be deployed, a current application to be deployed is determined, the environment variable parameter corresponding to the current application to be deployed is assembled in the deployment script, in response to a script pull request of a server, the assembled deployment script is sent to the server, and the server deploys the application by using the deployment script. The deployment scripts can be shared, only differentiated parameters need to be set for each application, and the scripts do not need to be repeatedly constructed, so that the deployment efficiency is improved, and the deployment process is simplified. Through the assembly mode, the script pulling request of the server is responded and then sent to the server, and isolation among different applications is achieved.
Drawings
The accompanying drawings, which are included to provide a further understanding of the application and are incorporated in and constitute a part of this application, illustrate embodiment(s) of the application and together with the description serve to explain the application and not to limit the application. In the drawings:
FIG. 1 is a schematic diagram illustrating a method for deploying an application according to an embodiment of the present disclosure;
fig. 2 is a schematic structural diagram of an apparatus for deploying an application according to an embodiment of the present disclosure;
fig. 3 is a schematic structural diagram of an electronic device provided in an embodiment of the present disclosure;
fig. 4 is a schematic diagram of a computer-readable medium provided in an embodiment of the present specification.
Detailed Description
Exemplary embodiments of the present invention will now be described more fully with reference to the accompanying drawings. The exemplary embodiments, however, may be embodied in many different forms and should not be construed as limited to the embodiments set forth herein. Rather, these exemplary embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the concept of the invention to those skilled in the art. The same reference numerals denote the same or similar elements, components, or parts in the drawings, and thus their repetitive description will be omitted.
Features, structures, characteristics or other details described in a particular embodiment do not preclude the fact that the features, structures, characteristics or other details may be combined in a suitable manner in one or more other embodiments in accordance with the technical idea of the invention.
In describing particular embodiments, the present invention has been described with reference to features, structures, characteristics or other details that are within the purview of one skilled in the art to provide a thorough understanding of the embodiments. One skilled in the relevant art will recognize, however, that the invention may be practiced without one or more of the specific features, structures, characteristics, or other details.
The flow charts shown in the drawings are merely illustrative and do not necessarily include all of the contents and operations/steps, nor do they necessarily have to be performed in the order described. For example, some operations/steps may be decomposed, and some operations/steps may be combined or partially combined, so that the actual execution sequence may be changed according to the actual situation.
The block diagrams shown in the figures are functional entities only and do not necessarily correspond to physically separate entities. I.e. these functional entities may be implemented in the form of software, or in one or more hardware modules or integrated circuits, or in different networks and/or processor means and/or microcontroller means.
The term "and/or" and/or "includes all combinations of any one or more of the associated listed items.
Fig. 1 is a schematic diagram of a method for deploying an application according to an embodiment of the present disclosure, where the method may include:
s101: and constructing a deployment script with environment variables, and sending the deployment script to a data warehouse for storage.
The deployment script sets the environment parameters, but in the embodiment of the present specification, the environment parameters of a plurality of applications may be counted, for the same environment parameter, the environment variable parameter is constructed in the deployment script, and for the differentiated environment parameter, the environment parameter is replaced by the environment variable.
Therefore, for each application, only when the deployment script is used, differentiated environment parameters are set, the parameters are transmitted to the deployment script, the environment variables in the deployment script are assigned to obtain the assembled deployment script, and then the assembled deployment script is used for deploying the application.
S102: and setting environment variable parameters for the application to be deployed.
In a business rapid development scene, more and more applications are managed, and in order to avoid deployment pressure caused by application growth and save server resources, a plurality of applications can be deployed in the same server.
In an embodiment of the present specification, the environment variable is a general variable of a plurality of applications, the environment variable parameter is an exclusive parameter of a current application to be deployed, and the deployment script having the environment variable is a script to be referred.
In this embodiment of the present specification, after the step of setting the environment variable parameter for the application to be deployed, the method may further include:
and updating the summary information of the deployment script for the application to be deployed and storing the summary information in a data warehouse.
After setting the environment variable parameters for the application to be deployed, the deployment script can be directly assembled and generated, and the summary information is generated and recorded for the deployment script of the version.
Therefore, each application can correspond to one or more summary information, when one summary information is newly generated, only the application corresponding to the summary information is updated and deployed, and the environment variable parameters are only effective in the deployment script corresponding to the current application to be deployed, so that isolation can be realized, and mutual interference among the deployment scripts of different applications is avoided.
In this embodiment of the present specification, the setting an environment variable parameter for an application to be deployed may include:
and creating a mapping table of the application identifier and the environment variable parameter, configuring the environment variable parameter through the release platform, and writing the environment variable parameter into the mapping table.
In the actual application scenario, an environment variable parameter is configured for each application to be deployed through a release platform, and the corresponding relation between the environment variable parameter and the application is obtained through querying a mapping table.
S103: determining the current application to be deployed, assembling the environment variable parameters corresponding to the current application to be deployed into the deployment script, responding to a script pulling request of the server, and sending the assembled deployment script to the server.
In the embodiment of the present specification, in order to decompose the deployment process into multiple stages and avoid the situation of direct deployment after the deployment script is generated, the environment variable parameters and the deployment script may be stored in the data warehouse, and when the server needs to be deployed, which environment variable parameter is assembled and provided to the server may be determined, so that deployments between different applications are isolated from each other.
S104: and the server deploys the application by using the deployment script.
The method comprises the steps of constructing a deployment script with environment variables, sending the deployment script to a data warehouse for storage, setting environment variable parameters for an application to be deployed, determining the current application to be deployed, assembling the environment variable parameters corresponding to the current application to be deployed into the deployment script, responding to a script pulling request of a server, sending the assembled deployment script to the server, and utilizing the deployment script by the server to deploy the application. The deployment scripts can be shared, only differentiated parameters need to be set for each application, and the scripts do not need to be repeatedly constructed, so that the deployment efficiency is improved, and the deployment process is simplified. Through the assembly mode, the script pulling request of the server is responded and then sent to the server, and isolation among different applications is achieved.
In the embodiment of the present specification, the method may further include:
when the server starts the application package, judging whether the local deployment script abstract information is consistent with the deployment script abstract information in the data warehouse, and if not, sending a script pulling request.
Specifically, the proxy server executes the deployment command, and triggers the server to download and start the application package.
And determining whether the deployment script corresponding to the current application to be deployed is updated or not by judging whether the local deployment script abstract information is consistent with the deployment script abstract information in the data warehouse or not.
In the embodiment of the present specification, the method may further include:
the deployment scripts are assembled through environment variable parameters corresponding to different applications to be deployed to generate different deployment scripts for deploying different applications.
Wherein, assembling may refer to attaching the environment variable parameter in the deployment script in the form of key value pair.
Of course, the environment variable may be directly assigned.
In this embodiment of the present specification, the deploying, by the server, the application by using the deployment script may include:
and creating a deployment process, acquiring the environment variable parameters corresponding to the environment variables from the deployment script, assigning the environment variable parameters to the current deployment process, and deploying the application.
In the embodiment of the present specification, the method may further include:
and carrying out the deployment of a plurality of applications in parallel by utilizing a plurality of concurrent processes.
Fig. 2 is a schematic structural diagram of an apparatus for deploying an application according to an embodiment of the present disclosure, where the apparatus may include:
the script construction module 201 is used for constructing a deployment script with environment variables and sending the deployment script to a data warehouse for storage;
a parameter setting module 202, configured to set an environment variable parameter for the application to be deployed;
the script assembly module 203 is used for determining the current application to be deployed, assembling the environment variable parameters corresponding to the current application to be deployed into the deployment script, responding to a script pull request of the server, and sending the assembled deployment script to the server;
and the deployment module 204 is used for deploying the application by the server by utilizing the deployment script.
Optionally, the environment variable is a general variable of a plurality of applications, the environment variable parameter is an exclusive parameter of a current application to be deployed, and the deployment script with the environment variable is a script to be referred.
Optionally, the method further comprises:
when the server starts the application package, judging whether the local deployment script abstract information is consistent with the deployment script abstract information in the data warehouse, and if not, sending a script pulling request.
Optionally, after the step of setting the environment variable parameter for the application to be deployed, the method further includes:
and updating the summary information of the deployment script for the application to be deployed and storing the summary information in a data warehouse.
Optionally, the method further comprises:
the deployment scripts are assembled through environment variable parameters corresponding to different applications to be deployed to generate different deployment scripts for deploying different applications.
Optionally, the server performs application deployment by using the deployment script, including:
and creating a deployment process, acquiring the environment variable parameters corresponding to the environment variables from the deployment script, assigning the environment variable parameters to the current deployment process, and deploying the application.
Optionally, the method further comprises:
and carrying out the deployment of a plurality of applications in parallel by utilizing a plurality of concurrent processes.
Optionally, the setting an environment variable parameter for the application to be deployed includes:
and creating a mapping table of the application identifier and the environment variable parameter, configuring the environment variable parameter through the release platform, and writing the environment variable parameter into the mapping table.
The device constructs a deployment script with environment variables, sends the deployment script to a data warehouse for storage, sets environment variable parameters for an application to be deployed, determines the current application to be deployed, assembles the environment variable parameters corresponding to the current application to be deployed into the deployment script, responds to a script pull request of a server, sends the assembled deployment script to the server, and the server deploys the application by using the deployment script. The deployment scripts can be shared, only differentiated parameters need to be set for each application, and the scripts do not need to be repeatedly constructed, so that the deployment efficiency is improved, and the deployment process is simplified. Through the assembly mode, the script pulling request of the server is responded and then sent to the server, and isolation among different applications is achieved.
Based on the same inventive concept, the embodiment of the specification further provides the electronic equipment.
In the following, embodiments of the electronic device of the present invention are described, which may be regarded as specific physical implementations for the above-described embodiments of the method and apparatus of the present invention. Details described in the embodiments of the electronic device of the invention should be considered supplementary to the embodiments of the method or apparatus described above; for details which are not disclosed in embodiments of the electronic device of the invention, reference may be made to the above-described embodiments of the method or the apparatus.
Fig. 3 is a schematic structural diagram of an electronic device provided in an embodiment of the present disclosure. An electronic device 300 according to this embodiment of the invention is described below with reference to fig. 3. The electronic device 300 shown in fig. 3 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiments of the present invention.
As shown in fig. 3, electronic device 300 is embodied in the form of a general purpose computing device. The components of electronic device 300 may include, but are not limited to: at least one processing unit 310, at least one memory unit 320, a bus 330 connecting the various system components (including the memory unit 320 and the processing unit 310), a display unit 340, and the like.
Wherein the storage unit stores program code executable by the processing unit 310 to cause the processing unit 310 to perform the steps according to various exemplary embodiments of the present invention described in the above-mentioned processing method section of the present specification. For example, the processing unit 310 may perform the steps as shown in fig. 1.
The storage unit 320 may include readable media in the form of volatile storage units, such as a random access memory unit (RAM)3201 and/or a cache storage unit 3202, and may further include a read only memory unit (ROM) 3203.
The storage unit 320 may also include a program/utility 3204 having a set (at least one) of program modules 3205, such program modules 3205 including, but not limited to: an operating system, one or more application programs, other program modules, and program data, each of which, or some combination thereof, may comprise an implementation of a network environment.
Bus 330 may be one or more of several types of bus structures, including a memory unit bus or memory unit controller, a peripheral bus, an accelerated graphics port, a processing unit, or a local bus using any of a variety of bus architectures.
The electronic device 300 may also communicate with one or more external devices 400 (e.g., keyboard, pointing device, bluetooth device, etc.), with one or more devices that enable a user to interact with the electronic device 300, and/or with any devices (e.g., router, modem, etc.) that enable the electronic device 300 to communicate with one or more other computing devices. Such communication may occur via an input/output (I/O) interface 350. Also, the electronic device 300 may communicate with one or more networks (e.g., a Local Area Network (LAN), a Wide Area Network (WAN), and/or a public network, such as the internet) via the network adapter 360. Network adapter 360 may communicate with other modules of electronic device 300 via bus 330. It should be appreciated that although not shown in FIG. 3, other hardware and/or software modules may be used in conjunction with electronic device 300, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems, among others.
Through the above description of the embodiments, those skilled in the art will readily understand that the exemplary embodiments of the present invention described herein may be implemented by software, or by software in combination with necessary hardware. Therefore, the technical solution according to the embodiment of the present invention can be embodied in the form of a software product, which can be stored in a computer-readable storage medium (which can be a CD-ROM, a usb disk, a removable hard disk, etc.) or on a network, and includes several instructions to make a computing device (which can be a personal computer, a server, or a network device, etc.) execute the above-mentioned method according to the present invention. The computer program, when executed by a data processing apparatus, enables the computer readable medium to implement the above-described method of the invention, namely: such as the method shown in fig. 1.
Fig. 4 is a schematic diagram of a computer-readable medium provided in an embodiment of the present specification.
A computer program implementing the method shown in fig. 1 may be stored on one or more computer readable media. The computer readable medium may be a readable signal medium or a readable storage medium. A readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples (a non-exhaustive list) of the readable storage medium include: an electrical connection having one or more wires, a portable disk, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
The computer readable storage medium may include a propagated data signal with readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A readable storage medium may also be any readable medium that is not a readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a readable storage medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
Program code for carrying out operations for aspects of the present invention may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, C + + or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computing device, partly on the user's device, as a stand-alone software package, partly on the user's computing device and partly on a remote computing device, or entirely on the remote computing device or server. In the case of a remote computing device, the remote computing device may be connected to the user computing device through any kind of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or may be connected to an external computing device (e.g., through the internet using an internet service provider).
In summary, the invention may be implemented in hardware, or in software modules running on one or more processors, or in a combination thereof. Those skilled in the art will appreciate that some or all of the functionality of some or all of the components in embodiments in accordance with the invention may be implemented in practice using a general purpose data processing device such as a microprocessor or a Digital Signal Processor (DSP). The present invention may also be embodied as apparatus or device programs (e.g., computer programs and computer program products) for performing a portion or all of the methods described herein. Such programs implementing the present invention may be stored on computer-readable media or may be in the form of one or more signals. Such a signal may be downloaded from an internet website or provided on a carrier signal or in any other form.
While the foregoing embodiments have described the objects, aspects and advantages of the present invention in further detail, it should be understood that the present invention is not inherently related to any particular computer, virtual machine or electronic device, and various general-purpose machines may be used to implement the present invention. The invention is not to be considered as limited to the specific embodiments thereof, but is to be understood as being modified in all respects, all changes and equivalents that come within the spirit and scope of the invention.
The embodiments in the present specification are described in a progressive manner, and the same and similar parts among the embodiments are referred to each other, and each embodiment focuses on the differences from the other embodiments.
The above description is only an example of the present application and is not intended to limit the present application. Various modifications and changes may occur to those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included in the scope of the claims of the present application.

Claims (11)

1. A method for deploying an application, comprising:
constructing a deployment script with environment variables, and sending the deployment script to a data warehouse for storage;
setting an environment variable parameter for an application to be deployed;
determining a current application to be deployed, assembling an environment variable parameter corresponding to the current application to be deployed into a deployment script, responding to a script pulling request of a server, and sending the assembled deployment script to the server;
and the server deploys the application by using the deployment script.
2. The method according to claim 1, wherein the environment variable is a general variable of a plurality of applications, the environment variable parameter is a specific parameter of a current application to be deployed, and the deployment script with an environment variable is a script to be referred to.
3. The method according to any one of claims 1-2, further comprising:
when the server starts the application package, judging whether the local deployment script abstract information is consistent with the deployment script abstract information in the data warehouse, and if not, sending a script pulling request.
4. The method according to any one of claims 1-3, further comprising, after the step of setting environment variable parameters for the application to be deployed:
and updating the summary information of the deployment script for the application to be deployed and storing the summary information in a data warehouse.
5. The method according to any one of claims 1-4, further comprising:
the deployment scripts are assembled through environment variable parameters corresponding to different applications to be deployed to generate different deployment scripts for deploying different applications.
6. The method according to any one of claims 1-5, wherein the server performs application deployment using the deployment script, comprising:
and creating a deployment process, acquiring the environment variable parameters corresponding to the environment variables from the deployment script, assigning the environment variable parameters to the current deployment process, and deploying the application.
7. The method according to any one of claims 1-6, further comprising:
and carrying out the deployment of a plurality of applications in parallel by utilizing a plurality of concurrent processes.
8. The method according to any one of claims 1-7, wherein setting environment variable parameters for the application to be deployed comprises:
and creating a mapping table of the application identifier and the environment variable parameter, configuring the environment variable parameter through the release platform, and writing the environment variable parameter into the mapping table.
9. An apparatus for deploying an application, comprising:
the script construction module is used for constructing a deployment script with an environment variable and sending the deployment script to a data warehouse for storage;
the parameter setting module is used for setting environment variable parameters for the application to be deployed;
the script assembly module is used for determining the current application to be deployed, assembling the environment variable parameters corresponding to the current application to be deployed into the deployment script, responding to a script pull request of the server and sending the assembled deployment script to the server;
and the server performs application deployment by using the deployment script.
10. An electronic device, wherein the electronic device comprises:
a processor; and the number of the first and second groups,
a memory storing computer-executable instructions that, when executed, cause the processor to perform the method of any of claims 1-8.
11. A computer readable storage medium, wherein the computer readable storage medium stores one or more programs which, when executed by a processor, implement the method of any of claims 1-8.
CN202110839265.0A 2021-07-23 2021-07-23 Application deployment method and device and electronic equipment Pending CN113568623A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110839265.0A CN113568623A (en) 2021-07-23 2021-07-23 Application deployment method and device and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110839265.0A CN113568623A (en) 2021-07-23 2021-07-23 Application deployment method and device and electronic equipment

Publications (1)

Publication Number Publication Date
CN113568623A true CN113568623A (en) 2021-10-29

Family

ID=78167036

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110839265.0A Pending CN113568623A (en) 2021-07-23 2021-07-23 Application deployment method and device and electronic equipment

Country Status (1)

Country Link
CN (1) CN113568623A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115878106A (en) * 2022-12-20 2023-03-31 中电金信软件有限公司 Script template processing method and device and electronic equipment

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20170116013A1 (en) * 2015-10-26 2017-04-27 International Business Machines Corporation Deployment of instances amid configuration changes
CN108551487A (en) * 2018-04-26 2018-09-18 Oppo广东移动通信有限公司 Application dispositions method, device, server and the storage medium of PaaS platform
CN109471799A (en) * 2018-10-29 2019-03-15 北京城市网邻信息技术有限公司 A kind of dispositions method of demand environment, device, storage medium and terminal
WO2019232828A1 (en) * 2018-06-06 2019-12-12 平安科技(深圳)有限公司 Script deployment method and apparatus, and computer device and storage medium
CN110865840A (en) * 2019-11-18 2020-03-06 上海极链网络科技有限公司 Application management method, device, server and storage medium
CN112463256A (en) * 2020-12-11 2021-03-09 微医云(杭州)控股有限公司 Method, system, electronic device and storage medium for determining configuration file
CN112732277A (en) * 2020-12-31 2021-04-30 罗普特科技集团股份有限公司 Java multi-service application automatic installation and deployment integration method and system
CN112764753A (en) * 2020-12-31 2021-05-07 北京知因智慧科技有限公司 Project deployment method and device, electronic equipment and storage medium

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20170116013A1 (en) * 2015-10-26 2017-04-27 International Business Machines Corporation Deployment of instances amid configuration changes
CN108551487A (en) * 2018-04-26 2018-09-18 Oppo广东移动通信有限公司 Application dispositions method, device, server and the storage medium of PaaS platform
WO2019232828A1 (en) * 2018-06-06 2019-12-12 平安科技(深圳)有限公司 Script deployment method and apparatus, and computer device and storage medium
CN109471799A (en) * 2018-10-29 2019-03-15 北京城市网邻信息技术有限公司 A kind of dispositions method of demand environment, device, storage medium and terminal
CN110865840A (en) * 2019-11-18 2020-03-06 上海极链网络科技有限公司 Application management method, device, server and storage medium
CN112463256A (en) * 2020-12-11 2021-03-09 微医云(杭州)控股有限公司 Method, system, electronic device and storage medium for determining configuration file
CN112732277A (en) * 2020-12-31 2021-04-30 罗普特科技集团股份有限公司 Java multi-service application automatic installation and deployment integration method and system
CN112764753A (en) * 2020-12-31 2021-05-07 北京知因智慧科技有限公司 Project deployment method and device, electronic equipment and storage medium

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115878106A (en) * 2022-12-20 2023-03-31 中电金信软件有限公司 Script template processing method and device and electronic equipment

Similar Documents

Publication Publication Date Title
CN112685035B (en) Project development method and device, computer readable storage medium and electronic equipment
CN109766099B (en) Front-end source code compiling method and device, storage medium and computer equipment
CN112764792B (en) Method and device for upgrading associated server version application and electronic equipment
KR102156371B1 (en) Method for providing embedded software development tools for supporting embedded software development environment based on native building and apparatus thereof
CN110688096B (en) Method and device for constructing application program containing plug-in, medium and electronic equipment
CN110895471A (en) Installation package generation method, device, medium and electronic equipment
CN112769706B (en) Componentized routing method and system
CN111026439A (en) Application program compatibility method, device, equipment and computer storage medium
CN110888639A (en) Business code compiling and packaging method and device
CN110489162B (en) Method, device, medium and equipment for simplifying installation package SO (storage and retrieval) file
CN108845864B (en) Spring frame-based JVM garbage recycling method and device
CN109343970B (en) Application program-based operation method and device, electronic equipment and computer medium
CN113568623A (en) Application deployment method and device and electronic equipment
CN113821220A (en) Installation method and device of linux operating system
CN112631563A (en) System development method and device based on framework, computer equipment and storage medium
CN113778477A (en) File processing method and device, computer readable storage medium and electronic device
CN108984221B (en) Method and device for acquiring multi-platform user behavior logs
CN114840195A (en) Privatization method for iOS SDK static library
CN110633083A (en) Code file processing method and device, electronic equipment and computer readable medium
CN112882698A (en) Development environment generation method and device, computer storage medium and electronic device
CN110427189A (en) Method, server and the system of Remote Dynamic compiling Android engineering
CN110780864A (en) Control method and device for class method replacement, storage medium and electronic equipment
CN112783529B (en) Method and device for controlling pre-release and upgrading of application program and electronic equipment
CN112783834B (en) Service resource online restocking method and device and electronic equipment
CN115408047A (en) Version release method and device and electronic equipment

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