CN107943543B - WEB application hot deployment method and computer equipment - Google Patents
WEB application hot deployment method and computer equipment Download PDFInfo
- Publication number
- CN107943543B CN107943543B CN201711228422.4A CN201711228422A CN107943543B CN 107943543 B CN107943543 B CN 107943543B CN 201711228422 A CN201711228422 A CN 201711228422A CN 107943543 B CN107943543 B CN 107943543B
- Authority
- CN
- China
- Prior art keywords
- web application
- application function
- file
- configuration information
- directory
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/60—Software deployment
- G06F8/61—Installation
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- General Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Stored Programmes (AREA)
Abstract
The invention provides a method for WEB application hot deployment, which uses JSON format files to store configuration information of WEB application functions, wherein each WEB application function has a unique number; exporting the JSON format file of each WEB application function into a compressed file; the compressed file is imported online and decompressed to the specified directory by the server; calling background service to scan the directory, using the unique serial number of the WEB application function as a Key to store the configuration information of the WEB application function, and caching the configuration information into a server memory; and when the WEB application function is updated, carrying out necessary compliance check on the JSON file of the updated WEB application function, and completing the update of the WEB application program if the JSON file is detected to be correct. According to the invention, when the WEB application is deployed, the deployment or the update of the WEB application can be completed by importing the WEB application package on line without restarting the middleware of the operating environment server.
Description
Technical Field
The invention relates to a method and computer equipment for WEB application hot deployment.
Background
So-called hot-deployment, is to upgrade software while an application is running, without restarting the application. At present, the deployment of the WEB application, such as the NET architecture or the J2EE architecture, requires that the server middleware is stopped first, then the application installation package is updated, and then the server middleware is started, so that the WEB application can access the application, because the time for stopping the server middleware to provide service is long, during the deployment or updating of the application, the service cannot be provided.
Disclosure of Invention
The technical problem to be solved by the present invention is to provide a method for hot deployment of a WEB application, so that deployment or update of the WEB application can be completed by importing a WEB application package on line without restarting middleware of an operating environment server when the WEB application is deployed.
The invention is realized by the following steps: a method for hot deployment of WEB applications comprises the following steps:
step S1, storing configuration information of WEB application functions by using a JSON format file, wherein each WEB application function has a unique number;
step S2, exporting the JSON format file of each WEB application function as a compressed file, wherein the root directory name of the compressed file is the unique serial number of the WEB application function, and the content under the directory is the JSON format file of the WEB application function;
step S3, the compressed file is imported online, and decompressed to the appointed directory by the server, if the directory exists, all files under the directory are covered;
step S4, calling background service to scan the catalog, storing configuration information of the WEB application function by taking the unique number of the WEB application function as Key, and caching the configuration information into a server memory;
and step S5, when the WEB application function is updated, carrying out necessary compliance check on the JSON file of the updated WEB application function, and if the JSON file is detected to be correct, finishing the update of the WEB application program.
Further, the configuration information of each WEB application function includes HTML display content, a data script, and a service logic script.
The invention also provides a computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor implements the following steps when executing the program:
step S1, storing configuration information of WEB application functions by using a JSON format file, wherein each WEB application function has a unique number;
step S2, exporting the JSON format file of each WEB application function as a compressed file, wherein the root directory name of the compressed file is the unique serial number of the WEB application function, and the content under the directory is the JSON format file of the WEB application function;
step S3, the compressed file is imported online, and decompressed to the appointed directory by the server, if the directory exists, all files under the directory are covered;
step S4, calling background service to scan the catalog, storing configuration information of the WEB application function by taking the unique number of the WEB application function as Key, and caching the configuration information into a server memory;
and step S5, when the WEB application function is updated, carrying out necessary compliance check on the JSON file of the updated WEB application function, and if the JSON file is detected to be correct, finishing the update of the WEB application program.
And the configuration information of each WEB application function comprises HTML display content, a data script and a service logic script.
The invention has the following advantages: according to the invention, when the WEB application is deployed, the middleware of the operating environment server does not need to be restarted, so that the WEB application can be supported to continuously provide services 24 hours a day; the deployment or the update of the WEB application can be completed by importing the installation package of the WEB application compressed file on line, so that the rapid deployment and the update of the WEB application are supported.
Detailed Description
The invention discloses a method for WEB application hot deployment, which comprises the following steps:
step S1, storing configuration information of WEB application functions by using a JSON format file, wherein each WEB application function has a unique number; the configuration information of each WEB application function comprises HTML display content, a data script and a service logic script; each WEB application function corresponds to a plurality of JSON format files, and each WEB application program installation package is composed of the application function files in the JSON format.
Step S2, exporting the JSON format file of each WEB application function into a compressed file, wherein the compressed file is a WEB application program installation package which can be in a zip format or other formats, the root directory name of the compressed file is the unique serial number of the WEB application function, and the content under the directory is the JSON format file of the WEB application function;
step S3, the compressed file is imported online, and decompressed to the appointed directory by the server, if the directory exists, all files under the directory are covered;
step S4, calling background service to scan the catalog, storing configuration information of the WEB application function by taking the unique number of the WEB application function as Key, and caching the configuration information into a server memory;
and step S5, when the WEB application function is updated, performing necessary compliance check on the JSON file of the updated WEB application function, wherein the check includes check whether the serial number is null, whether the function name is null and the like, and when the check is correct, completing the update of the WEB application program.
The invention also provides a computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor implements the following steps when executing the program:
step S1, storing configuration information of WEB application functions by using a JSON format file, wherein each WEB application function has a unique number; the configuration information of each WEB application function comprises HTML display content, a data script and a service logic script; each WEB application function corresponds to a plurality of JSON format files, and each WEB application program installation package is composed of the application function files in the JSON format.
Step S2, exporting the JSON format file of each WEB application function into a compressed file, wherein the compressed file is a WEB application program installation package which can be in a zip format or other formats, the root directory name of the compressed file is the unique serial number of the WEB application function, and the content under the directory is the JSON format file of the WEB application function;
step S3, the compressed file is imported online, and decompressed to the appointed directory by the server, if the directory exists, all files under the directory are covered;
step S4, calling background service to scan the catalog, storing configuration information of the WEB application function by taking the unique number of the WEB application function as Key, and caching the configuration information into a server memory;
and step S5, when the WEB application function is updated, performing necessary compliance check on the JSON file of the updated WEB application function, wherein the check includes check whether the serial number is null, whether the function name is null and the like, and when the check is correct, completing the update of the WEB application program.
The invention can execute HTML display content, data script and service logic script of WEB application; then packaging HTML display content, data scripts and service logic scripts of the WEB application in a WEB application program installation package; the WEB application middleware is responsible for deploying and updating the WEB application program package; according to the invention, when the WEB application is deployed, the middleware of the operating environment server does not need to be restarted, so that the WEB application can be supported to continuously provide services 24 hours a day; the deployment or the update of the WEB application can be completed by importing the installation package of the WEB application compressed file on line, so that the rapid deployment and the update of the WEB application are supported.
Although specific embodiments of the invention have been described above, it will be understood by those skilled in the art that the specific embodiments described are illustrative only and are not limiting upon the scope of the invention, and that equivalent modifications and variations can be made by those skilled in the art without departing from the spirit of the invention, which is to be limited only by the appended claims.
Claims (2)
1. A method for WEB application hot deployment is characterized in that: the method comprises the following steps:
step S1, storing configuration information of WEB application functions by using a JSON format file, wherein each WEB application function has a unique number, and the configuration information of each WEB application function comprises HTML display content, a data script and a service logic script; each WEB application function corresponds to a plurality of JSON format files, and each WEB application program installation package is composed of the application function files in the JSON format;
step S2, exporting the JSON format file of each WEB application function into a compressed file, wherein the compressed file is a WEB application program installation package, the root directory name of the compressed file is the unique serial number of the WEB application function, and the content under the directory is the JSON format file of the WEB application function;
step S3, the compressed file is imported online, and decompressed to the appointed directory by the server, if the directory exists, all files under the directory are covered;
step S4, calling background service to scan the catalog, storing configuration information of the WEB application function by taking the unique number of the WEB application function as Key, and caching the configuration information into a server memory;
and step S5, when the WEB application function is updated, performing necessary compliance check on the JSON file of the updated WEB application function, wherein the check includes check whether the serial number is null or not and whether the function name is null or not, and the check is correct, so that the update of the WEB application program is completed.
2. A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor when executing the program performs the steps of:
step S1, storing configuration information of WEB application functions by using a JSON format file, wherein each WEB application function has a unique number, and the configuration information of each WEB application function comprises HTML display content, a data script and a service logic script; each WEB application function corresponds to a plurality of JSON format files, and each WEB application program installation package is composed of the application function files in the JSON format;
step S2, exporting the JSON format file of each WEB application function into a compressed file, wherein the compressed file is a WEB application program installation package, the root directory name of the compressed file is the unique serial number of the WEB application function, and the content under the directory is the JSON format file of the WEB application function;
step S3, the compressed file is imported online, and decompressed to the appointed directory by the server, if the directory exists, all files under the directory are covered;
step S4, calling background service to scan the catalog, storing configuration information of the WEB application function by taking the unique number of the WEB application function as Key, and caching the configuration information into a server memory;
and step S5, when the WEB application function is updated, performing necessary compliance check on the JSON file of the updated WEB application function, wherein the check includes check whether the serial number is null or not and whether the function name is null or not, and the check is correct, so that the update of the WEB application program is completed.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711228422.4A CN107943543B (en) | 2017-11-29 | 2017-11-29 | WEB application hot deployment method and computer equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711228422.4A CN107943543B (en) | 2017-11-29 | 2017-11-29 | WEB application hot deployment method and computer equipment |
Publications (2)
Publication Number | Publication Date |
---|---|
CN107943543A CN107943543A (en) | 2018-04-20 |
CN107943543B true CN107943543B (en) | 2022-01-14 |
Family
ID=61946682
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201711228422.4A Active CN107943543B (en) | 2017-11-29 | 2017-11-29 | WEB application hot deployment method and computer equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107943543B (en) |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109992290A (en) * | 2019-03-21 | 2019-07-09 | 深圳点猫科技有限公司 | The programming realization method and system that a kind of pair of desktop end program Intelligent hot updates |
CN110300109B (en) * | 2019-06-28 | 2022-08-09 | 合肥高维数据技术有限公司 | Method for managing client by server |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102402427A (en) * | 2010-09-09 | 2012-04-04 | 阿里巴巴集团控股有限公司 | Method and device for updating Java application program |
CN104216700A (en) * | 2013-09-10 | 2014-12-17 | 侯金涛 | Cloud-computing-based HTML5 application packaging, installation, unloading and operation method and system |
CN104598277A (en) * | 2015-01-13 | 2015-05-06 | 北京中交兴路车联网科技有限公司 | Method for building mobile terminal applications, mobile terminal and system |
CN107133064A (en) * | 2017-03-16 | 2017-09-05 | 武汉斗鱼网络科技有限公司 | The hot update method of the page and device of native applications |
Family Cites Families (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20030135509A1 (en) * | 2002-01-11 | 2003-07-17 | Davis Andrew Thomas | Edge server java application framework having application server instance resource monitoring and management |
US7865535B2 (en) * | 2007-05-18 | 2011-01-04 | International Business Machines Corporation | Apparatus, system, and method for a data server-managed web services runtime |
JP5236698B2 (en) * | 2010-07-15 | 2013-07-17 | シャープ株式会社 | Compound machine |
US9454359B2 (en) * | 2013-01-28 | 2016-09-27 | Red Hat, Inc. | Deployment optimization for high availability in a multi-tenant platform-as-a-service (PaaS) system |
CN104102502B (en) * | 2013-04-09 | 2018-09-04 | 腾讯科技(深圳)有限公司 | A kind of processing method that realizing heat deployment, device and server |
-
2017
- 2017-11-29 CN CN201711228422.4A patent/CN107943543B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102402427A (en) * | 2010-09-09 | 2012-04-04 | 阿里巴巴集团控股有限公司 | Method and device for updating Java application program |
CN104216700A (en) * | 2013-09-10 | 2014-12-17 | 侯金涛 | Cloud-computing-based HTML5 application packaging, installation, unloading and operation method and system |
CN104598277A (en) * | 2015-01-13 | 2015-05-06 | 北京中交兴路车联网科技有限公司 | Method for building mobile terminal applications, mobile terminal and system |
CN107133064A (en) * | 2017-03-16 | 2017-09-05 | 武汉斗鱼网络科技有限公司 | The hot update method of the page and device of native applications |
Also Published As
Publication number | Publication date |
---|---|
CN107943543A (en) | 2018-04-20 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US11385903B2 (en) | Firmware update patch | |
CN112162753B (en) | Software deployment method, device, computer equipment and storage medium | |
CN106610839B (en) | Method for issuing upgrade package, lightweight upgrade method, device and system | |
CN108520059A (en) | Loading method, system, computer equipment and the storage medium of the client H5 pages | |
CN103793248B (en) | Method and device for upgrading application program | |
US11816458B2 (en) | Method and system for packaging infrastructure as code | |
US9372787B2 (en) | System and method for automating testing | |
CN110225078B (en) | Application service updating method, system and terminal equipment | |
CN104461786A (en) | Recovery method and system for Android system | |
CN107943543B (en) | WEB application hot deployment method and computer equipment | |
US9519600B2 (en) | Driver shimming | |
CN109298877A (en) | Game renewal method and system, terminal and computer readable storage medium | |
US20150006736A1 (en) | Method and System for Deploying and Modifying a Service-Oriented Architecture Deployment Environment | |
CN106293790B (en) | application program upgrading method and device based on Firefox operating system | |
CN107193597A (en) | A kind of application program update method and terminal | |
CN114915554A (en) | Remote upgrading method and device, computer equipment and storage medium | |
CN113448650A (en) | Live broadcast function plug-in loading method, device, equipment and storage medium | |
CN104573496A (en) | Method and device for inhibiting starting items from starting | |
CN109891385B (en) | Method and terminal for installing POS machine initialization configuration information | |
CN109582319B (en) | Service code deployment method and device | |
CN111708545A (en) | Business process deployment method and device, electronic equipment and storage medium | |
CN108228208A (en) | A kind of dynamic updating method and device of JAVA application programs | |
CN106933604A (en) | A kind of method for upgrading system and device | |
CN106951288B (en) | Development and application method and device of hot upgrade resource | |
CN111651469B (en) | Method and device for managing blockchain system contracts |
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 | ||
CB02 | Change of applicant information |
Address after: 350000 unit 03, 21 / F, building 7, Fuzhou Software Park, No. 89, software Avenue, Gulou District, Fuzhou City, Fujian Province Applicant after: Yousuyun (Fujian) Technology Co.,Ltd. Address before: Room 513, building 11, area B, Fuzhou Software Park, 89 software Avenue, Gulou District, Fuzhou City, Fujian Province 350000 Applicant before: FUZHOU ZHIJIE INFORMATION TECHNOLOGY CO.,LTD. |
|
CB02 | Change of applicant information | ||
GR01 | Patent grant | ||
GR01 | Patent grant |