Application deployment method and device
Through the collaborative work of cloud servers and cloud hosts, the deployment process of virtual applications is automated, which solves the problems of tedious manual steps and high error rates in the virtual application deployment and release process, and achieves efficient and flexible application deployment and release.
Patent Information
- Application Number
- CN202410724487.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-05
- Publication Date
- 2024-08-23
AI Technical Summary
There are multiple manual steps in the deployment and release process of virtual applications, which are time-consuming and error-prone, increase management costs, limit rapid deployment and flexibility, and cannot effectively respond to changes in application requirements and system environment.
Obtain the application package, application type and user configuration information of the application to be deployed through the cloud server, generate a configuration package and send it to the cloud host. After receiving the instructions, the cloud host reads the information in the configuration package for deployment, automatically completing the installation and configuration of the application.
It simplifies the deployment and release process of virtual applications, improves deployment efficiency, reduces operational complexity, reduces the need for manual configuration, and enhances the flexibility and adaptability of deployment.
Smart Images

Figure CN118535181A
Abstract
Description
Technical Field
[0001] The present invention relates to the field of computer technology, and in particular to an application deployment method. The present invention also relates to an application deployment device, a computing device, a computer-readable storage medium, and a computer program product. Background Art
[0002] With the rapid development of cloud computing and virtualization technology, virtual applications have become a widely adopted application deployment method for enterprises and individual users. Virtual applications allow applications to be separated from their underlying operating systems, providing greater flexibility, portability, and security. However, the virtual application publishing process usually involves multiple manual steps, including configuring virtual machines, installing applications, setting up network and security rules, etc. These steps are not only time-consuming but also prone to errors.
[0003] In the virtual application publishing method, administrators usually need to have deep professional knowledge and need to manually perform a series of complex operations. This not only increases management costs, but also limits the rapid deployment of virtual applications. In addition, the manual release of virtual applications by administrators often lacks flexibility and adaptability, and cannot effectively respond to changing application requirements and system environments.
[0004] Therefore, there is an urgent need for a method to simplify the deployment and release process of virtual applications, improve deployment and release efficiency, and reduce operational complexity. Summary of the invention
[0005] In view of this, the embodiments of this specification provide an application deployment method. This specification also relates to an application deployment device, a computing device, a computer-readable storage medium and a computer program product to solve the above problems existing in the prior art.
[0006] According to a first aspect of an embodiment of this specification, there is provided an application deployment method, which is applied to a cloud application deployment system, wherein the cloud application deployment system includes a cloud server and a cloud host; the method includes:
[0007] The cloud server obtains an application package to be deployed of the application to be deployed, an application type to be deployed of the application to be deployed, and user configuration information of the application package to be deployed, generates a configuration package to be deployed of the application to be deployed according to the application package to be deployed, the application type to be deployed, and the user configuration information, generates an application deployment instruction for the configuration package to be deployed, and sends the instruction to the cloud host;
[0008] The cloud host receives the application deployment instruction, obtains the configuration package to be deployed in response to the application deployment instruction, reads the type of application to be deployed, the user configuration information and the application package to be deployed in the configuration package to be deployed, and deploys the application to be deployed according to the type of application to be deployed, the user configuration information and the application package to be deployed.
[0009] According to a second aspect of an embodiment of this specification, there is provided an application deployment method, which is applied to a cloud host and includes:
[0010] Receiving an application deployment instruction for an application to be deployed, and acquiring a configuration package to be deployed of the application to be deployed in response to the application deployment instruction;
[0011] Reading the type of application to be deployed, user configuration information and application package to be deployed in the configuration package to be deployed;
[0012] The application to be deployed is deployed according to the type of the application to be deployed, the user configuration information and the application package to be deployed.
[0013] According to a third aspect of an embodiment of this specification, there is provided an application deployment device, which is applied to a cloud host and includes:
[0014] An acquisition module is configured to receive an application deployment instruction for an application to be deployed, and acquire a configuration package to be deployed of the application to be deployed in response to the application deployment instruction;
[0015] A reading module is configured to read the type of application to be deployed, user configuration information and the application package to be deployed in the configuration package to be deployed;
[0016] The deployment module is configured to deploy the application to be deployed according to the type of the application to be deployed, the user configuration information and the application package to be deployed.
[0017] According to the fourth aspect of the embodiments of this specification, a computing device is provided, including a memory, a processor, and a computer program or instructions stored in the memory and executable on the processor, wherein the processor implements the steps of the above-mentioned application deployment method when executing the computer program or instructions.
[0018] According to a fifth aspect of the embodiments of this specification, a computer-readable storage medium is provided, which stores a computer program or instructions, and when the computer program or instructions are executed by a processor, the steps of the above-mentioned application deployment method are implemented.
[0019] According to a sixth aspect of the embodiments of this specification, a computer program product is provided, including a computer program or instructions, which implement the steps of the above-mentioned application deployment method when executed by a processor.
[0020] An embodiment of the present specification realizes that the cloud server obtains the application package to be deployed, the application type to be deployed, and the user configuration information of the application package to be deployed, and generates the configuration package to be deployed of the application to be deployed according to the obtained application package to be deployed, the application type to be deployed, and the user configuration information. Thus, after receiving the application deployment instruction for the application to be deployed, the cloud host can obtain the configuration package to be deployed of the application to be deployed, and read the application type to be deployed, the user configuration information, and the application package to be deployed in the configuration package to be deployed, so as to deploy the application to be deployed according to the application type to be deployed, the user configuration information, and the application package to be deployed, and complete the deployment process of the application to be deployed on the cloud host. Thus, the user does not need to configure the application to be deployed through manual operation, and manually deploys it based on the configuration information, which simplifies the process of deploying the application to be deployed and improves the deployment efficiency. BRIEF DESCRIPTION OF THE DRAWINGS
[0021] Figure 1 is a flow chart of an application deployment method provided in an embodiment of this specification;
[0022] Figure 2 This is a flowchart of generating a configuration package to be deployed provided by an embodiment of this specification;
[0023] Figure 3 This is a flowchart of deploying an application to be deployed provided by an embodiment of this specification;
[0024] Figure 4 It is a processing flow chart of an application deployment method provided in an embodiment of this specification;
[0025] Figure 5 is a flow chart of another application deployment method provided by an embodiment of this specification;
[0026] Figure 6 It is a structural diagram of an application deployment device provided in an embodiment of this specification;
[0027] Figure 7 It is a structural block diagram of a computing device provided in an embodiment of this specification. DETAILED DESCRIPTION
[0028] Many specific details are described in the following description to facilitate a full understanding of this specification. However, this specification can be implemented in many other ways than those described herein, and those skilled in the art can make similar generalizations without violating the connotation of this specification, so this specification is not limited to the specific implementation disclosed below.
[0029] The terms used in one or more embodiments of this specification are only for the purpose of describing specific embodiments, and are not intended to limit one or more embodiments of this specification. The singular forms of "a", "said" and "the" used in one or more embodiments of this specification and the appended claims are also intended to include plural forms, unless the context clearly indicates other meanings. It should also be understood that the term "and / or" used in one or more embodiments of this specification refers to and includes any or all possible combinations of one or more associated listed items.
[0030] It should be understood that although the terms first, second, etc. may be used to describe various information in one or more embodiments of this specification, this information should not be limited to these terms. These terms are only used to distinguish the same type of information from each other. For example, without departing from the scope of one or more embodiments of this specification, the first may also be referred to as the second, and similarly, the second may also be referred to as the first. Depending on the context, the word "if" as used herein may be interpreted as "at the time of" or "when" or "in response to determining".
[0031] First, the terms involved in one or more embodiments of this specification are explained.
[0032] Virtual application: refers to the separation of an application from its underlying operating system through virtualization technology, allowing the application to run on different operating systems or platforms, improving the compatibility, portability and security of the application.
[0033] Cloud computing: It is an Internet-based computing method that provides shared hardware and software resources and information to computers and other devices on demand, achieving dynamic allocation and efficient use of computing resources.
[0034] With the rapid development of cloud computing and virtualization technology, virtual applications have become a widely adopted application deployment method for enterprises and individual users. Virtual applications allow applications to be separated from their underlying operating systems, providing greater flexibility, portability, and security. However, the virtual application publishing process usually involves multiple manual steps, including configuring virtual machines, installing applications, setting up network and security rules, etc. These steps are not only time-consuming but also prone to errors.
[0035] In the virtual application publishing method, administrators usually need to have deep professional knowledge and need to manually perform a series of complex operations. This not only increases management costs, but also limits the rapid deployment of virtual applications. In addition, the manual release of virtual applications by administrators often lacks flexibility and adaptability, and cannot effectively respond to changing application requirements and system environments.
[0036] In this specification, an application deployment method is provided. This specification also relates to an application deployment apparatus, a computing device, a computer-readable storage medium, and a computer program product, which are described in detail one by one in the following embodiments.
[0037] Figure 1 A flowchart of an application deployment method provided according to an embodiment of this specification is shown, which specifically includes the following steps:
[0038] Step 102: The cloud server obtains the application package to be deployed of the application to be deployed, the application type to be deployed of the application to be deployed, and the user configuration information of the application package to be deployed, generates a configuration package to be deployed of the application to be deployed according to the application package to be deployed, the application type to be deployed, and the user configuration information, generates an application deployment instruction for the configuration package to be deployed, and sends it to the cloud host.
[0039] In actual applications, in order to save the space occupied by applications on local terminals, more and more users or enterprises gradually adopt the deployment method of virtual applications, that is, deploying applications in the cloud, and the user end accesses the application by calling the application in the cloud. However, in the release process of virtual applications, administrators usually need to have deep professional knowledge and perform a series of complex operations manually. In the process of manually deploying and releasing virtual applications, deployment errors may occur, resulting in deployment and release failure, and reducing deployment and release efficiency.
[0040] In one or more embodiments of the present specification, an application deployment method is provided. The application deployment method is applied to a cloud application deployment system. The cloud application deployment system includes a cloud server and at least one cloud host.
[0041] Among them, the application to be deployed refers to a virtual application that needs to be deployed and released. The application to be deployed can be a virtual application after an update or iteration, or it can be a virtual application that has not been deployed and released. The application package to be deployed refers to an installation package or a compressed package used to deploy the application to be deployed. The application type to be deployed refers to the application type of the application to be deployed, which is used to characterize whether the application to be deployed needs to be installed on the cloud host. The application type to be deployed can specifically include a portable application type or an installable application type. The portable application type refers to the application type of a virtual application that can be used without being installed on a cloud host; the installable application type refers to the application type of a virtual application that needs to be installed on a cloud host before it can be used.
[0042] User configuration information refers to the configuration information of the application package to be deployed that is customized by the user. User refers to the relevant technical personnel who deploy and publish the application to be deployed. User configuration information can specifically include configuration information to be deployed or configuration information to be installed. Configuration information to be deployed refers to the configuration information set for the application to be deployed of the portable application type; configuration information to be installed refers to the configuration information set for the application to be deployed of the installable application type. Configuration information to be deployed includes, but is not limited to, the deployment path of the application to be deployed and whether to retain the setting information of the historical version of the application corresponding to the application to be deployed. Configuration information to be installed includes, but is not limited to, the installation path of the application to be deployed.
[0043] The configuration package to be deployed refers to a configuration package used to deploy or install the application to be deployed. The configuration package to be deployed may specifically include the application package to be deployed, the application type to be deployed, and user configuration information of the application to be deployed.
[0044] Application deployment instructions refer to the instructions generated by the cloud server for deploying and installing the application to be deployed.
[0045] In actual applications, users can upload the application package to be deployed of the application to be deployed in the cloud application management platform, determine the application type to be deployed of the application to be deployed, set the user configuration information of the application to be deployed, and after the settings are completed, upload the application package to be deployed, the application type to be deployed and the user configuration information to the cloud server. Thus, the cloud service can obtain the application package to be deployed, the application type to be deployed and the user configuration information of the application to be deployed, and generate the configuration package to be deployed of the application to be deployed according to the application package to be deployed, the application type to be deployed and the user configuration information. Then, an application deployment instruction for the configuration package to be deployed is generated, and the application deployment instruction is sent to the cloud host that has not yet deployed and installed the application to be deployed, so that the cloud host that receives the application deployment instruction can complete the deployment and installation of the application to be deployed.
[0046] Since the deployment method of virtual applications of portable application type is different from that of virtual applications of installable application type, and the configuration package to be deployed is the basis for deploying and installing the application to be deployed, after the cloud server obtains the application package to be deployed, the application type to be deployed and the user configuration information of the application to be deployed, it can determine the method for generating the configuration package to be deployed of the application to be deployed according to the application type to be deployed of the application to be deployed, and then deploy and install the application to be deployed.
[0047] In a specific implementation manner provided in this specification, generating a to-be-deployed configuration package of the to-be-deployed application according to the to-be-deployed application package, the to-be-deployed application type and the user configuration information includes:
[0048] Determining a configuration package generation method for the configuration package to be deployed according to the type of the application to be deployed;
[0049] A configuration package to be deployed of the application to be deployed is generated according to the configuration package generation method, the application package to be deployed, the type of the application to be deployed and the user configuration information.
[0050] The configuration package generation method refers to a generation method for generating a configuration package to be deployed for an application to be deployed. The configuration package generation method specifically includes a first generation method or a second generation method. The first generation method specifically refers to a method that does not require the generation of installation script data for the application to be deployed; the second generation method specifically refers to a method that requires the generation of installation script data for the application to be deployed.
[0051] Specifically, after obtaining the application package to be deployed, the type of application to be deployed, and the user configuration information of the application to be deployed, the cloud server determines the configuration package generation method for generating the configuration package to be deployed according to the type of application to be deployed, and generates the configuration package to be deployed of the application to be deployed according to the application package to be deployed, the type of application to be deployed, and the user configuration information, combined with the configuration package generation method of the configuration package to be deployed. The specific implementation method of determining the configuration package generation method of the configuration package to be deployed according to the type of application to be deployed is as follows:
[0052] In a specific implementation manner provided in this specification, determining a configuration package generation method of the configuration package to be deployed according to the type of the application to be deployed includes:
[0053] In the case where the type of the application to be deployed is a portable application type, determining that the configuration package generation method is a first generation method, wherein the first generation method does not require generation of installation script data;
[0054] In the case that the type of application to be deployed is an installation-type application type, the configuration package generation method is determined to be a second generation method, wherein the second generation method requires generating installation script data.
[0055] In actual applications, portable application type virtual applications can be used without being installed on a cloud host. Therefore, for portable application type virtual applications, in the process of generating a configuration package to be deployed, there is no need to generate installation script data for them. However, installable application type virtual applications need to be installed on a cloud host before they can be used. Therefore, for installable application type virtual applications, in the process of generating a configuration package to be deployed, it is necessary to generate installation script data for them in order to subsequently install the application to be deployed.
[0056] Specifically, the cloud server can determine whether the application to be deployed is a virtual application of a portable application type or a virtual application of an installable application type according to the type of the application to be deployed. If the application to be deployed is a virtual application of a portable application type, it can be determined that the generation method of its configuration package to be deployed is the first generation method, that is, there is no need to generate installation script data for the application to be deployed; if the application to be deployed is a virtual application of an installable application type, it can be determined that the generation method of its configuration package to be deployed is the second generation method, that is, it is necessary to generate installation script data for the application to be deployed.
[0057] Further, after determining the configuration package generation method of the configuration package to be deployed, the configuration package to be deployed of the application to be deployed can be generated according to the configuration package generation method, the application package to be deployed, the type of application to be deployed and the user configuration information.
[0058] In a specific implementation manner provided in this specification, generating a to-be-deployed configuration package of the to-be-deployed application according to the configuration package generation method, the to-be-deployed application package, the to-be-deployed application type and the user configuration information includes:
[0059] According to the portable application type, determining that the user configuration information is configuration information to be deployed;
[0060] A configuration package to be deployed of the application to be deployed is generated according to the configuration information to be deployed, the portable application type and the application package to be deployed.
[0061] Specifically, when it is determined that the type of the application to be deployed is a portable application type, it can be determined that the application to be deployed does not need to be installed on the cloud host, so there is no need to generate installation script data for it. The user configuration information at this time is the configuration information to be deployed, which can specifically include the deployment path of the application to be deployed and whether to retain the setting information of the historical version application corresponding to the application to be deployed. Therefore, the configuration information to be deployed, the portable application type and the application package to be deployed can be integrated to generate the configuration package to be deployed of the application to be deployed.
[0062] In another specific implementation manner provided in this specification, generating a to-be-deployed configuration package of the to-be-deployed application according to the configuration package generation method, the to-be-deployed application package, the to-be-deployed application type and the user configuration information includes:
[0063] According to the installable application type, determining that the user configuration information is configuration information to be installed;
[0064] Generate installation script data of the application to be deployed according to the application package to be deployed and the configuration information to be installed;
[0065] A to-be-deployed configuration package of the to-be-deployed application is generated according to the installation script data and the installable application type.
[0066] Specifically, when it is determined that the type of the application to be deployed is an installable application type, it can be determined that the application to be deployed needs to be installed on the cloud host, so that installation script data needs to be generated for it. The user configuration information at this time is the configuration information to be installed, which may specifically include the installation path of the application to be deployed, etc. The installation script data of the application to be deployed is generated according to the configuration information to be installed and the application package to be deployed of the application to be deployed. After the installation script data is generated, the configuration package to be deployed of the application to be deployed is generated according to the installation script data and the installable application type.
[0067] By determining the method for generating the configuration package to be deployed of the application to be deployed according to the type of the application to be deployed, and generating the configuration package to be deployed according to the configuration package generation method, it is possible to generate the configuration package to be deployed for the applications to be deployed of different types of applications to be deployed in a targeted manner, thereby improving the accuracy of generating the configuration package to be deployed and the efficiency of subsequent deployment and installation of the application to be deployed.
[0068] See also Figure 2 , Figure 2 A flowchart of generating a configuration package to be deployed according to an embodiment of this specification is shown. Figure 2 As shown, after obtaining the application package to be deployed, the application type to be deployed and the user configuration information of the application to be deployed, the cloud server determines whether the application to be deployed is a virtual application of a portable application type or a virtual application of an installable application type by judging the application type to be deployed. If the application to be deployed is a virtual application of a portable application type, the configuration package generation method of the application to be deployed is determined to be the first generation method, that is, the application to be deployed does not need to be installed on the cloud host, and there is no need to generate installation script data for the application to be deployed. Therefore, the user configuration information of the application to be deployed is determined to be the configuration information to be deployed, and the configuration package to be deployed of the application to be deployed is generated according to the configuration information to be deployed, the application package to be deployed and the portable application type. If the application to be deployed is a virtual application of the installable application type, the configuration package generation method of the application to be deployed is determined to be the second generation method, that is, the application to be deployed needs to be installed on the cloud host, that is, installation script data needs to be generated for the application to be deployed, thereby determining the user configuration information of the application to be deployed as the configuration information to be installed, and based on the configuration information to be installed and the application package to be deployed, generating the installation script data of the application to be deployed, and generating the configuration package to be deployed of the application to be deployed according to the installation script data and the installable application type.
[0069] In actual applications, when the cloud server is in the process of obtaining the application package to be deployed, the application type to be deployed, and the user configuration information of the application to be deployed, if the user configuration information is not obtained, that is, the user has not set the configuration information of the application package to be deployed, in order not to affect the subsequent deployment and installation process of the application to be deployed, the cloud server can obtain the preset configuration information and perform subsequent processing, as follows:
[0070] In another specific embodiment provided in this specification, the method further comprises:
[0071] The cloud server obtains preset configuration information when the user configuration information of the application package to be deployed is not obtained;
[0072] The preset configuration information is determined as the user configuration information of the application package to be deployed.
[0073] The preset configuration information refers to the configuration information of the application package to be deployed that is preset for the application to be deployed, that is, the default configuration information.
[0074] Specifically, if the cloud server does not obtain the user configuration information of the application package to be deployed, it can obtain the preset configuration information and determine the preset configuration information as the user configuration information of the application package to be deployed. For example, the preset configuration information obtained includes the default deployment and installation path of the application to be deployed, and the historical version of the application is not retained during the deployment and installation process.
[0075] The application deployment method provided in this specification allows users to upload the application package to be deployed of the application to be deployed to the cloud server for subsequent processing. To simplify the subsequent application deployment process and improve the accuracy of application deployment, before uploading the application package to the cloud server, the user can determine the application type to be deployed of the application to be deployed and set the user configuration information of the application package to be deployed, and then upload the application package to be deployed, the application type to be deployed and the user configuration information to the cloud server together. Thus, in the subsequent process of deploying and installing the application to be deployed, the application to be deployed can be deployed and installed based on the application package to be deployed according to the application type to be deployed and the user configuration information. Since the user configuration information of the application package to be deployed can be customized by the user, the flexibility of deploying and installing the application to be deployed can be further improved.
[0076] Step 104: The cloud host receives the application deployment instruction, obtains the configuration package to be deployed in response to the application deployment instruction, reads the type of application to be deployed, the user configuration information and the application package to be deployed in the configuration package to be deployed, and deploys the application to be deployed according to the type of application to be deployed, the user configuration information and the application package to be deployed.
[0077] In actual applications, after generating the deployment configuration package of the application to be deployed, the cloud server will also generate an application deployment instruction for the deployment configuration package and send the application deployment instruction to the cloud host that has not yet deployed the application to be deployed. The cloud host can receive the application deployment instruction and execute the subsequent deployment and installation process of the application to be deployed.
[0078] Specifically, after the cloud server generates the configuration package to be deployed of the application to be deployed, it can store the configuration package to be deployed in the cloud server. After receiving the application deployment instruction, the cloud host can obtain the configuration package to be deployed of the application to be deployed from the cloud server in response to the application deployment instruction. After the cloud server generates the configuration package to be deployed of the application to be deployed, it can also carry the configuration package to be deployed in the application deployment instruction and send it to the cloud host. After obtaining the configuration package to be deployed of the application to be deployed, the cloud host can read the application package to be deployed, the application type to be deployed and the user configuration information of the application to be deployed from the configuration package to be deployed, and deploy the application to be deployed based on the application package to be deployed, the application type to be deployed and the user configuration information.
[0079] In a specific implementation manner provided in this specification, deploying the application to be deployed according to the type of the application to be deployed, the user configuration information and the application package to be deployed includes:
[0080] In the case where the type of the application to be deployed is a portable application type, determining that the user configuration information is configuration information to be deployed, and deploying the application to be deployed according to the configuration information to be deployed and the application package to be deployed;
[0081] In the case where the type of application to be deployed is an installable application type, the user configuration information is determined to be configuration information to be installed, and installation script data generated according to the application package to be deployed and the configuration information to be installed is read, and the application to be deployed is installed according to the configuration information to be installed and the installation script data.
[0082] After the cloud host reads the application package to be deployed, the type of application to be deployed, and the user configuration information from the configuration package to be deployed, it can determine whether the application to be deployed is a virtual application of a portable application type or a virtual application of an installable application type through the type of application to be deployed. If the application to be deployed is a virtual application of a portable application type, the user configuration information of the application package to be deployed can be determined as the configuration information to be deployed, and thus, the application to be deployed is deployed according to the configuration information to be deployed and the application package to be deployed. If the application to be deployed is a virtual application of an installable application type, the user configuration information of the application package to be deployed can be determined as the configuration information to be installed, and since the configuration package to be deployed corresponding to the virtual application of the installable application type contains installation script data for installing the application to be deployed, the installation script data can be read from the configuration package to be deployed, and the application to be deployed can be installed according to the configuration information to be installed and the installation script data.
[0083] The following explains the implementation process of deploying a portable application type application to be deployed.
[0084] In a specific implementation manner provided in this specification, deploying the application to be deployed according to the configuration information to be deployed and the application package to be deployed includes:
[0085] Determine whether the cloud host has deployed a historical version of the application to be deployed;
[0086] In the case where the cloud host has deployed a historical version application of the application to be deployed, determining whether to retain the historical version application and the deployment path of the application to be deployed according to the configuration information to be deployed;
[0087] If so, deploy the application to be deployed according to the deployment path and the application package to be deployed, and retain the historical version application;
[0088] If not, the application to be deployed is deployed according to the deployment path and the application package to be deployed, and the historical version application is deleted.
[0089] The historical version application refers to the historical version of the application to be deployed. For example, if the application to be deployed is virtual application 2.0, the historical version application is virtual application 1.0.
[0090] Specifically, after obtaining the configuration information to be deployed, the cloud host determines whether the historical version of the application to be deployed has been deployed locally on the cloud host. If the historical version of the application to be deployed has been deployed locally on the cloud host, it can determine whether the historical version of the application needs to be retained from the configuration information to be deployed. If it is determined that the historical version of the application needs to be retained, the application to be deployed is deployed on the cloud host according to the deployment path and the application package to be deployed, and the historical version of the application is retained; if it is determined that the historical version of the application does not need to be retained, the application to be deployed is deployed on the cloud host according to the deployment path and the application package to be deployed, and the historical version of the application is deleted, so that only the application to be deployed is retained locally on the cloud host.
[0091] Furthermore, the cloud host may not have deployed a historical version of the application to be deployed locally. In this case, the application to be deployed can be directly deployed according to the configuration information to be deployed and the application package to be deployed.
[0092] Based on this, in a specific implementation manner provided in this specification, the method further includes:
[0093] In the case that the cloud host has not deployed the historical version application of the application to be deployed, determining the deployment path of the application to be deployed according to the configuration information to be deployed;
[0094] The application to be deployed is deployed according to the deployment path and the application package to be deployed.
[0095] If it is determined that the cloud host has not deployed a historical version of the application to be deployed locally, the deployment path of the application to be deployed can be determined according to the configuration information to be deployed, and the application to be deployed can be deployed on the cloud host according to the deployment path and the application package to be deployed.
[0096] Through the configuration information to be deployed, it is determined whether the user has the need to retain the historical version of the application during the deployment of the application to be deployed, and the application to be deployed is deployed based on the user's needs (determined by the configuration information to be deployed), so that the user can retain multiple versions of the virtual application program, thereby improving the user's flexibility in using the virtual application program.
[0097] The following explains the implementation process of installing the application to be deployed of the deployment installation application type.
[0098] In a specific implementation provided in this specification, installing the application to be deployed according to the configuration information to be installed and the installation script data includes:
[0099] Determining the installation path of the application to be deployed according to the configuration information to be installed;
[0100] Load the preset installation configuration environment;
[0101] According to the installation path, the installation script data is run in the preset installation configuration environment.
[0102] The preset installation configuration environment refers to the installation dependency environment used to install the application to be deployed.
[0103] Specifically, after obtaining the installation configuration information of the application to be deployed, the cloud host determines the installation path of the application to be deployed from the installation configuration information, loads the preset installation configuration environment, and starts and runs the installation script data in the preset installation configuration environment according to the installation path to install the application to be deployed.
[0104] In actual applications, the installation of the application to be deployed may fail due to abnormalities in the preset installation configuration environment or other reasons. Therefore, it is also necessary to judge the installation status of the application to be deployed.
[0105] Therefore, in a specific embodiment provided in this specification, the method further includes:
[0106] Determine whether the application to be deployed is successfully installed;
[0107] If the application to be deployed is not installed successfully, installation feedback information is generated and sent to the cloud server.
[0108] The installation feedback information refers to the feedback information generated by the cloud host on the installation failure of the application to be deployed. The installation feedback information may specifically include the installation status of the application to be deployed that failed to be installed, and the reason for the installation failure of the application to be deployed.
[0109] Specifically, after installing the application to be deployed, the cloud host needs to further determine whether the application to be deployed is successfully installed. If the application to be deployed is not successfully installed, installation feedback information can be generated and sent to the cloud server to notify relevant technical personnel to process.
[0110] Furthermore, if the application to be deployed is successfully deployed or installed on the cloud host, the cloud host will publish the application to be deployed and may generate deployment prompt information and send it to the cloud server to feedback to the cloud server that the deployment and publishing of the application to be deployed is successful.
[0111] Furthermore, after receiving the deployment prompt information sent by the cloud host point, the cloud server can notify the client that has been assigned the permission to use the application to be deployed to use the application to be deployed.
[0112] It should be noted that the process of deploying and installing the application to be deployed by the cloud host can also be applied to the proxy cloud host, and the proxy cloud host is deployed in the cloud host.
[0113] See also Figure 3 , Figure 3 A flowchart of deploying an application to be deployed according to an embodiment of this specification is shown. Take the cloud host as an example to illustrate the execution subject of deploying and installing the application to be deployed. Figure 3 As shown, the cloud host receives the application deployment instruction sent by the cloud server, and obtains the configuration package to be deployed from the cloud server in response to the application deployment instruction. Based on the type of the application to be deployed in the configuration package to be deployed, it is determined whether the application to be deployed is a virtual application of a portable application type or a virtual application of an installable application type. In the case where the application to be deployed is a virtual application of a portable application type, it is determined that the user configuration information is the configuration information to be deployed, and it is determined whether the cloud host has deployed the historical version application of the application to be deployed. If the cloud host has deployed the historical version application, it is determined based on the configuration information to be deployed whether the historical version application needs to be retained, and the deployment path for deploying the application to be deployed. If the historical version application needs to be retained, the application to be deployed is deployed according to the deployment path and the application package to be deployed, and the historical version application is retained; if the historical version application does not need to be retained, the application to be deployed is deployed according to the deployment path and the application package to be deployed, and the historical version application is deleted. If the cloud host has not deployed the historical version application, the deployment path for deploying the application to be deployed is determined based on the configuration information to be deployed, and the application to be deployed is deployed according to the deployment path and the application package to be deployed. After the deployment of the application to be deployed is completed, the cloud host publishes the application to be deployed as a virtual application and feeds back to the cloud server that the virtual application has been successfully published.
[0114] In the case where the application to be deployed is a virtual application of the installation type, the user configuration information is determined to be the configuration information to be installed, the installation path of the application to be deployed is determined based on the configuration information to be installed, and the preset installation configuration environment is loaded. According to the installation path, the installation script data of the application to be deployed is started and run in the preset installation configuration environment to install the application to be deployed. In order to improve the accuracy of the installation of the application to be deployed, it is possible to further determine whether the application to be deployed is successfully installed. If the installation is successful, the cloud host can publish the application to be deployed as a virtual application and feedback to the cloud server that the virtual application is successfully published; if the installation fails, installation feedback information is generated and sent to the cloud server so that relevant technical personnel can manually process it.
[0115] The application deployment method provided in the present specification is applied to a cloud application deployment system, wherein the cloud application deployment system includes a cloud server and a cloud host; the method includes: the cloud server obtains an application package to be deployed of an application to be deployed, an application type to be deployed of the application to be deployed, and user configuration information of the application package to be deployed, generates a configuration package to be deployed of the application to be deployed according to the application package to be deployed, the application type to be deployed, and the user configuration information, generates an application deployment instruction for the configuration package to be deployed, and sends the application deployment instruction to the cloud host; the cloud host receives the application deployment instruction, obtains the configuration package to be deployed in response to the application deployment instruction, reads the application type to be deployed, the user configuration information, and the application package to be deployed in the configuration package to be deployed, and deploys the application to be deployed according to the application type to be deployed, the user configuration information, and the application package to be deployed.
[0116] An embodiment of the present specification realizes that the cloud server obtains the application package to be deployed, the application type to be deployed, and the user configuration information of the application package to be deployed, and generates the configuration package to be deployed of the application to be deployed according to the obtained application package to be deployed, the application type to be deployed, and the user configuration information. Thus, after receiving the application deployment instruction for the application to be deployed, the cloud host can obtain the configuration package to be deployed of the application to be deployed, and read the application type to be deployed, the user configuration information, and the application package to be deployed in the configuration package to be deployed, so as to deploy the application to be deployed according to the application type to be deployed, the user configuration information, and the application package to be deployed, and complete the deployment process of the application to be deployed on the cloud host. Thus, the user does not need to configure the application to be deployed through manual operation, and manually deploys it based on the configuration information, which simplifies the process of deploying the application to be deployed and improves the deployment efficiency.
[0117] The following combination Figure 4 , further illustrating the application deployment method. Figure 4 A processing flow chart of an application deployment method provided by an embodiment of this specification is shown, such as Figure 4 As shown, the user can upload the application package to be deployed of the application to be deployed through the cloud application management platform, determine the application type to be deployed of the application to be deployed, set the user configuration information of the application to be deployed, and after the setting is completed, upload the application package to be deployed, the application type to be deployed and the user configuration information to the cloud server ( Figure 4(not shown). After obtaining the application package to be deployed, the application type to be deployed, and the user configuration information of the application to be deployed, the cloud server determines the specific application type of the application to be deployed. In the case where the application to be deployed is a virtual application program of a portable application type, the generation method of the configuration package to be deployed of the application to be deployed is determined to be the first generation method, that is, there is no need to generate installation script data for the application to be deployed, and the user configuration information is determined to be the configuration information to be deployed, so as to generate the configuration package to be deployed based on the configuration information to be deployed, the type of application to be deployed (portable application type), and the application package to be deployed, and generate application deployment instructions for the configuration package to be deployed. In the case where the application to be deployed is a virtual application program of an installable application type, the generation method of the configuration package to be deployed of the application to be deployed is determined to be the second generation method, that is, it is necessary to generate installation script data for the application to be deployed, and the user configuration information is determined to be the configuration information to be installed, so as to generate installation script data for installing the application to be deployed based on the configuration information to be installed and the application package to be deployed, and generate the configuration package to be deployed of the application to be deployed according to the installation script data and the type of application to be deployed (installable application type), and generate application deployment instructions for the configuration package to be deployed.
[0118] After generating the application deployment instruction, the cloud server sends the application deployment instruction to the cloud host that has not deployed and installed the application to be deployed, so that the cloud host deploys and installs the application to be deployed based on the application deployment instruction.
[0119] After receiving the application deployment instruction sent by the cloud server, the cloud host obtains the to-be-deployed configuration package of the to-be-deployed application from the cloud server in response to the application deployment instruction. The to-be-deployed application type of the to-be-deployed application is read from the to-be-deployed configuration package. When the to-be-deployed application type is a portable application type, it indicates that the to-be-deployed application can be used without being installed on the cloud host. The user configuration information is determined to be the to-be-deployed configuration information, and the to-be-deployed application is deployed in the cloud host based on the to-be-deployed configuration information. The specific deployment process is as follows: judging whether the cloud host has deployed the historical version application of the to-be-deployed application. If the cloud host has deployed the historical version application, determining whether the historical version application needs to be retained and the deployment path for deploying the to-be-deployed application based on the to-be-deployed configuration information. If the historical version application needs to be retained, the to-be-deployed application is deployed according to the deployment path and the to-be-deployed application package, and the historical version application is retained; if the historical version application does not need to be retained, the to-be-deployed application is deployed according to the deployment path and the to-be-deployed application package, and the historical version application is deleted. If the cloud host has not deployed the historical version application, the deployment path for deploying the to-be-deployed application is determined based on the to-be-deployed configuration information, and the to-be-deployed application is deployed according to the deployment path and the to-be-deployed application package. After the deployment of the application to be deployed is completed, the cloud host publishes the application to be deployed as a virtual application and feeds back to the cloud server that the virtual application has been successfully published. After the deployment of the application to be deployed is completed, the cloud host publishes the application to be deployed as a virtual application and sends information about the successful publication of the virtual application to the cloud server. In the case where the type of the application to be deployed is an installed application type, it means that the application to be deployed needs to be installed on the cloud host before it can be used, and the user configuration information is determined to be the configuration information to be installed, and the application to be deployed is installed in the cloud host based on the configuration information to be installed. The specific installation process is: based on the configuration information to be installed, the installation path of the application to be deployed is determined, and the preset installation configuration environment is loaded. According to the installation path, the installation script data of the application to be deployed is started and run in the preset installation configuration environment to install the application to be deployed. Then, it is determined whether the application to be deployed is installed successfully. If the installation is successful, the cloud host can publish the application to be deployed as a virtual application and feed back to the cloud server that the virtual application has been successfully published.
[0120] An embodiment of the present specification realizes that the cloud server obtains the application package to be deployed, the application type to be deployed, and the user configuration information of the application package to be deployed, and generates the configuration package to be deployed of the application to be deployed according to the obtained application package to be deployed, the application type to be deployed, and the user configuration information. Thus, after receiving the application deployment instruction for the application to be deployed, the cloud host can obtain the configuration package to be deployed of the application to be deployed, and read the application type to be deployed, the user configuration information, and the application package to be deployed in the configuration package to be deployed, so as to deploy the application to be deployed according to the application type to be deployed, the user configuration information, and the application package to be deployed, and complete the deployment process of the application to be deployed on the cloud host. Thus, the user does not need to configure the application to be deployed through manual operation, and manually deploys it based on the configuration information, which simplifies the process of deploying the application to be deployed and improves the deployment efficiency.
[0121] Figure 5 A flowchart of another application deployment method provided according to an embodiment of this specification is shown, which specifically includes the following steps:
[0122] Step 502: Receive an application deployment instruction for an application to be deployed, and obtain a configuration package to be deployed of the application to be deployed in response to the application deployment instruction.
[0123] Step 504: Read the type of application to be deployed, user configuration information and application package to be deployed in the configuration package to be deployed.
[0124] Step 506: Deploy the application to be deployed according to the type of the application to be deployed, the user configuration information and the application package to be deployed.
[0125] Optionally, in an embodiment provided in this specification, deploying the application to be deployed according to the type of the application to be deployed, the user configuration information and the application package to be deployed includes:
[0126] In the case where the type of the application to be deployed is a portable application type, determining that the user configuration information is configuration information to be deployed, and deploying the application to be deployed according to the configuration information to be deployed and the application package to be deployed;
[0127] In the case where the type of application to be deployed is an installable application type, the user configuration information is determined to be configuration information to be installed, and installation script data generated according to the application package to be deployed and the configuration information to be installed is read, and the application to be deployed is installed according to the configuration information to be installed and the installation script data.
[0128] Optionally, in an embodiment provided in this specification, deploying the application to be deployed according to the configuration information to be deployed and the application package to be deployed includes:
[0129] Determine whether the cloud host has deployed a historical version of the application to be deployed;
[0130] In the case where the cloud host has deployed a historical version application of the application to be deployed, determining whether to retain the historical version application and the deployment path of the application to be deployed according to the configuration information to be deployed;
[0131] If so, deploy the application to be deployed according to the deployment path and the application package to be deployed, and retain the historical version application;
[0132] If not, the application to be deployed is deployed according to the deployment path and the application package to be deployed, and the historical version application is deleted.
[0133] Optionally, in an embodiment provided in this specification, the method further includes:
[0134] In the case that the cloud host has not deployed the historical version application of the application to be deployed, determining the deployment path of the application to be deployed according to the configuration information to be deployed;
[0135] The application to be deployed is deployed according to the deployment path and the application package to be deployed.
[0136] Optionally, in an embodiment provided in this specification, installing the application to be deployed according to the configuration information to be installed and the installation script data includes:
[0137] Determining the installation path of the application to be deployed according to the configuration information to be installed;
[0138] Load the preset installation configuration environment;
[0139] According to the installation path, the installation script data is run in the preset installation configuration environment.
[0140] Optionally, in an embodiment provided in this specification, the method further includes:
[0141] Determine whether the application to be deployed is successfully installed;
[0142] If the application to be deployed is not installed successfully, installation feedback information is generated and sent to the cloud server.
[0143] The application deployment method is applied to the cloud host. The execution process of the application deployment method is the same as the execution process of the cloud host deploying and installing the application to be deployed in the above-mentioned application deployment method. The execution process of the application deployment method can refer to the execution process of the cloud host deploying and installing the application to be deployed in the above-mentioned application deployment method, and this specification will not repeat it here.
[0144] Another embodiment of the present specification realizes that a cloud host deploys and installs an application to be deployed by using the application package to be deployed, the application type to be deployed and the user configuration information of the application to be deployed, without the need for the user to configure the application to be deployed through manual operations, and manual deployment and installation are performed based on the configuration information, thereby simplifying the process of deploying and installing the application to be deployed and improving the deployment and installation efficiency.
[0145] Corresponding to the above method embodiment, this specification also provides an application deployment device embodiment, Figure 6 FIG. 1 shows a schematic diagram of the structure of an application deployment device provided in an embodiment of the present specification. Figure 6 As shown, the device is applied to a cloud host and includes:
[0146] The acquisition module 602 is configured to receive an application deployment instruction for the application to be deployed, and acquire a configuration package to be deployed of the application to be deployed in response to the application deployment instruction;
[0147] The reading module 604 is configured to read the type of application to be deployed, user configuration information and the application package to be deployed in the configuration package to be deployed;
[0148] The deployment module 606 is configured to deploy the application to be deployed according to the type of the application to be deployed, the user configuration information and the application package to be deployed.
[0149] Optionally, the deployment module 606 is further configured to:
[0150] In the case where the type of the application to be deployed is a portable application type, determining that the user configuration information is configuration information to be deployed, and deploying the application to be deployed according to the configuration information to be deployed and the application package to be deployed;
[0151] In the case where the type of application to be deployed is an installable application type, the user configuration information is determined to be configuration information to be installed, and installation script data generated according to the application package to be deployed and the configuration information to be installed is read, and the application to be deployed is installed according to the configuration information to be installed and the installation script data.
[0152] Optionally, the deployment module 606 is further configured to:
[0153] Determine whether the cloud host has deployed a historical version of the application to be deployed;
[0154] In the case where the cloud host has deployed a historical version application of the application to be deployed, determining whether to retain the historical version application and the deployment path of the application to be deployed according to the configuration information to be deployed;
[0155] If so, deploy the application to be deployed according to the deployment path and the application package to be deployed, and retain the historical version application;
[0156] If not, the application to be deployed is deployed according to the deployment path and the application package to be deployed, and the historical version application is deleted.
[0157] Optionally, the device further comprises:
[0158] a path determination module configured to determine a deployment path of the application to be deployed according to the to-be-deployed configuration information when the cloud host has not deployed a historical version of the application to be deployed;
[0159] The application deployment module is configured to deploy the application to be deployed according to the deployment path and the application package to be deployed.
[0160] Optionally, the deployment module 606 is further configured to:
[0161] Determining the installation path of the application to be deployed according to the configuration information to be installed;
[0162] Load the preset installation configuration environment;
[0163] According to the installation path, the installation script data is run in the preset installation configuration environment.
[0164] Optionally, the device further comprises:
[0165] A determination module is configured to determine whether the application to be deployed is successfully installed;
[0166] The sending module is configured to generate installation feedback information when the application to be deployed is not successfully installed, and send the installation feedback information to the cloud server.
[0167] Another embodiment of the present specification realizes that a cloud host deploys and installs an application to be deployed by using the application package to be deployed, the application type to be deployed and the user configuration information of the application to be deployed, without the need for the user to configure the application to be deployed through manual operations, and manual deployment and installation are performed based on the configuration information, thereby simplifying the process of deploying and installing the application to be deployed and improving the deployment and installation efficiency.
[0168] The above is a schematic scheme of an application deployment device of this embodiment. It should be noted that the technical scheme of the application deployment device and the technical scheme of the above application deployment method belong to the same concept, and the details not described in detail in the technical scheme of the application deployment device can be referred to the description of the technical scheme of the above application deployment method.
[0169] Figure 7The structure block diagram of a computing device 700 provided according to an embodiment of the present specification is shown. The components of the computing device 700 include but are not limited to a memory 710 and a processor 720. The processor 720 is connected to the memory 710 via a bus 730, and the database 750 is used to store data.
[0170] The computing device 700 also includes an access device 740, which enables the computing device 700 to communicate via one or more networks 760. Examples of these networks include a public switched telephone network (PSTN), a local area network (LAN), a wide area network (WAN), a personal area network (PAN), or a combination of communication networks such as the Internet. The access device 740 may include one or more of any type of network interface (e.g., a network interface card (NIC)) of wired or wireless, such as an IEEE 802.11 wireless local area network (WLAN) wireless interface, a world-wide interoperability for microwave access (Wi-MAX) interface, an Ethernet interface, a universal serial bus (USB) interface, a cellular network interface, a Bluetooth interface, a near field communication (NFC) interface, and the like.
[0171] In one embodiment of the present specification, the above components of the computing device 700 and Figure 7 Other components not shown in the figure may also be connected to each other, for example, via a bus. It should be understood that Figure 7 The computing device structure block diagram shown is only for the purpose of illustration, and is not intended to limit the scope of this specification. Those skilled in the art can add or replace other components as needed.
[0172] The computing device 700 may be any type of stationary or mobile computing device, including a mobile computer or mobile computing device (e.g., a tablet computer, a personal digital assistant, a laptop computer, a notebook computer, a netbook, etc.), a mobile phone (e.g., a smart phone), a wearable computing device (e.g., a smart watch, smart glasses, etc.), or other types of mobile devices, or a stationary computing device such as a desktop computer or a personal computer (PC). The computing device 700 may also be a mobile or stationary server.
[0173] The processor 720 implements the steps of the application deployment method when executing the computer program or instruction.
[0174] The above is a schematic scheme of a computing device of this embodiment. It should be noted that the technical scheme of the computing device and the technical scheme of the above application deployment method belong to the same concept, and the details not described in detail in the technical scheme of the computing device can be referred to the description of the technical scheme of the above application deployment method.
[0175] An embodiment of the present specification also provides a computer-readable storage medium storing a computer program or instruction, which implements the steps of the application deployment method as described above when executed by a processor.
[0176] The above is a schematic scheme of a computer-readable storage medium of this embodiment. It should be noted that the technical scheme of the storage medium and the technical scheme of the above application deployment method belong to the same concept, and the details not described in detail in the technical scheme of the storage medium can be referred to the description of the technical scheme of the above application deployment method.
[0177] An embodiment of the present specification also provides a computer program product, including a computer program or instructions, which implement the steps of the above-mentioned application deployment method when executed by a processor.
[0178] The above is a schematic solution of a computer program product of this embodiment. It should be noted that the technical solution of the computer program product and the technical solution of the above application deployment method belong to the same concept, and the details not described in detail in the technical solution of the computer program product can be referred to the description of the technical solution of the above application deployment method.
[0179] The above is a description of a specific embodiment of the specification. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps recorded in the claims can be performed in an order different from that in the embodiments and still achieve the desired results. In addition, the processes depicted in the drawings do not necessarily require the specific order or continuous order shown to achieve the desired results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.
[0180] The computer program or instruction includes a computer program code, which may be in source code form, object code form, executable file or some intermediate form, etc. The computer readable medium may include: any entity or device capable of carrying the computer program code, recording medium, USB flash drive, mobile hard disk, magnetic disk, optical disk, computer memory, read-only memory (ROM), random access memory (RAM), electric carrier signal, telecommunication signal and software distribution medium, etc.
[0181] It should be noted that, for the convenience of description, the aforementioned method embodiments are all described as a series of action combinations, but those skilled in the art should be aware that this specification is not limited by the order of the actions described, because according to this specification, some steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily required by this specification.
[0182] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0183] The preferred embodiments of this specification disclosed above are only used to help explain this specification. The optional embodiments do not describe all the details in detail, nor do they limit the invention to only the specific implementation methods described. Obviously, many modifications and changes can be made according to the content of this specification. This specification selects and specifically describes these embodiments in order to better explain the principles and practical applications of this specification, so that technicians in the relevant technical field can well understand and use this specification. This specification is limited only by the claims and their full scope and equivalents.
Claims
1. An application deployment method, characterized in that: Applied to a cloud application deployment system, the cloud application deployment system includes a cloud server and a cloud host; the method includes: The cloud server obtains an application package to be deployed of the application to be deployed, an application type to be deployed of the application to be deployed, and user configuration information of the application package to be deployed, generates a configuration package to be deployed of the application to be deployed according to the application package to be deployed, the application type to be deployed, and the user configuration information, generates an application deployment instruction for the configuration package to be deployed, and sends the instruction to the cloud host; The cloud host receives the application deployment instruction, obtains the configuration package to be deployed in response to the application deployment instruction, reads the type of application to be deployed, the user configuration information and the application package to be deployed in the configuration package to be deployed, and deploys the application to be deployed according to the type of application to be deployed, the user configuration information and the application package to be deployed.
2. The method according to claim 1, characterized in that Generating a configuration package to be deployed of the application to be deployed according to the application package to be deployed, the type of the application to be deployed and the user configuration information includes: Determining a configuration package generation method for the configuration package to be deployed according to the type of the application to be deployed; A configuration package to be deployed of the application to be deployed is generated according to the configuration package generation method, the application package to be deployed, the type of the application to be deployed and the user configuration information.
3. The method according to claim 2, characterized in that Determining a configuration package generation method of the configuration package to be deployed according to the type of the application to be deployed includes: In the case where the type of the application to be deployed is a portable application type, determining that the configuration package generation method is a first generation method, wherein the first generation method does not require generation of installation script data; In the case that the type of application to be deployed is an installation-type application type, the configuration package generation method is determined to be a second generation method, wherein the second generation method requires generating installation script data.
4. The method according to claim 3, characterized in that Generating a configuration package to be deployed of the application to be deployed according to the configuration package generation method, the application package to be deployed, the type of the application to be deployed, and the user configuration information includes: Determining, according to the portable application type, that the user configuration information is configuration information to be deployed; A configuration package to be deployed of the application to be deployed is generated according to the configuration information to be deployed, the portable application type and the application package to be deployed.
5. The method according to claim 3, characterized in that Generating a configuration package to be deployed of the application to be deployed according to the configuration package generation method, the application package to be deployed, the type of the application to be deployed, and the user configuration information includes: According to the installable application type, determining that the user configuration information is configuration information to be installed; Generate installation script data of the application to be deployed according to the application package to be deployed and the configuration information to be installed; A to-be-deployed configuration package of the to-be-deployed application is generated according to the installation script data and the installable application type.
6. The method according to claim 1, characterized in that Deploying the application to be deployed according to the type of the application to be deployed, the user configuration information, and the application package to be deployed, includes: In the case where the type of the application to be deployed is a portable application type, determining that the user configuration information is configuration information to be deployed, and deploying the application to be deployed according to the configuration information to be deployed and the application package to be deployed; In the case where the type of application to be deployed is an installable application type, the user configuration information is determined to be configuration information to be installed, and installation script data generated according to the application package to be deployed and the configuration information to be installed is read, and the application to be deployed is installed according to the configuration information to be installed and the installation script data.
7. The method according to claim 6, characterized in that Deploying the application to be deployed according to the configuration information to be deployed and the application package to be deployed includes: Determine whether the cloud host has deployed a historical version of the application to be deployed; In the case where the cloud host has deployed a historical version application of the application to be deployed, determining whether to retain the historical version application and the deployment path of the application to be deployed according to the configuration information to be deployed; If so, deploy the application to be deployed according to the deployment path and the application package to be deployed, and retain the historical version application; If not, the application to be deployed is deployed according to the deployment path and the application package to be deployed, and the historical version application is deleted.
8. The method according to claim 7, characterized in that The method further comprises: In the case that the cloud host has not deployed the historical version application of the application to be deployed, determining the deployment path of the application to be deployed according to the configuration information to be deployed; The application to be deployed is deployed according to the deployment path and the application package to be deployed.
9. The method according to claim 6, characterized in that Installing the application to be deployed according to the configuration information to be installed and the installation script data includes: Determining the installation path of the application to be deployed according to the configuration information to be installed; Load the preset installation configuration environment; According to the installation path, the installation script data is run in the preset installation configuration environment.
10. The method according to claim 9, characterized in that The method further comprises: Determine whether the application to be deployed is successfully installed; If the application to be deployed is not installed successfully, installation feedback information is generated and sent to the cloud server.
11. The method according to claim 1, characterized in that The method further comprises: The cloud server obtains preset configuration information when the user configuration information of the application package to be deployed is not obtained; The preset configuration information is determined as the user configuration information of the application package to be deployed.
12. An application deployment method, characterized in that: Applicable to cloud hosts, including: Receiving an application deployment instruction for an application to be deployed, and acquiring a configuration package to be deployed of the application to be deployed in response to the application deployment instruction; Reading the type of application to be deployed, user configuration information and application package to be deployed in the configuration package to be deployed; The application to be deployed is deployed according to the type of the application to be deployed, the user configuration information and the application package to be deployed.
13. An application deployment device, characterized in that: Applicable to cloud hosts, including: An acquisition module is configured to receive an application deployment instruction for an application to be deployed, and acquire a configuration package to be deployed of the application to be deployed in response to the application deployment instruction; A reading module is configured to read the type of application to be deployed, user configuration information and the application package to be deployed in the configuration package to be deployed; The deployment module is configured to deploy the application to be deployed according to the type of the application to be deployed, the user configuration information and the application package to be deployed.
14. A computing device comprising a memory, a processor, and a computer program or instruction stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program or instructions, the steps of the method according to any one of claims 1 to 12 are implemented.
15. A computer-readable storage medium storing a computer program or instruction, characterized in that: When the computer program or instruction is executed by a processor, the steps of the method according to any one of claims 1 to 12 are implemented.
16. A computer program product comprising a computer program or instructions, characterized in that When the computer program or instruction is executed by a processor, the steps of the method according to any one of claims 1 to 12 are implemented.
