CN110221841B - Web-based interactive application deployment and delivery method and system - Google Patents
Web-based interactive application deployment and delivery method and system Download PDFInfo
- Publication number
- CN110221841B CN110221841B CN201910343240.4A CN201910343240A CN110221841B CN 110221841 B CN110221841 B CN 110221841B CN 201910343240 A CN201910343240 A CN 201910343240A CN 110221841 B CN110221841 B CN 110221841B
- Authority
- CN
- China
- Prior art keywords
- code
- user
- compiling
- project
- log
- 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
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/40—Transformation of program code
- G06F8/41—Compilation
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/60—Software deployment
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/70—Software maintenance or management
- G06F8/71—Version control; Configuration management
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/02—Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]
Landscapes
- Engineering & Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Software Systems (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Computer Security & Cryptography (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Stored Programmes (AREA)
Abstract
The invention provides a web-based interactive application deployment delivery method, which comprises the steps of verifying and authorizing the identity information of a user when the user logs in by using a system login interface; after logging in the system, automatically reading an item authority table authorized to the user from the database and displaying the item authority table on a system interface; selecting an item to be constructed from the displayed item authority table, automatically pulling codes in a source code warehouse according to the selected item for compiling, distributing the compiled application code package to a corresponding server in an application server cluster, and generating a distribution result; and automatically logging in the corresponding server according to the distribution result, and automatically restarting the application program. The invention also provides a system corresponding to the method. The invention has the advantages that: the software development team can further shorten the delivery time of the software, improve the deployment efficiency of the code, improve the rollback capability of the version and reduce the error rate of the deployment.
Description
Technical Field
The invention relates to the field of computers, in particular to a web-based interactive application deployment and delivery method and system.
Background
With the increasing number of enterprise information software product lines, the software architecture is also changed from the initial single application to the distributed microservice application, and under the condition that the product lines are increased and the software architecture is changed day by day, how to guarantee that the software product is delivered at the first time is a common challenge for enterprises and research and development personnel.
In order to ensure that the software product can be delivered quickly, in addition to the early-stage accurate software requirement analysis, further specification processing is required for development iteration, deployment and test verification of software functions by developers. In the traditional situation, after completing function iteration, research and development personnel need to intervene in packaging, deployment and other links for rapid verification, so that the repeatability is high, and human configuration errors are easy to occur. Meanwhile, currently, software development is generally completed by a plurality of teams in a cooperative manner, the number of times of software function iteration per day is frequent, the software delivery time of the teams is seriously influenced according to a traditional packing and deploying mode, and meanwhile, the investment of operation and maintenance labor cost is increased.
Disclosure of Invention
One of the technical problems to be solved by the present invention is to provide a web-based interactive application deployment delivery method, which further reduces software delivery time and improves code deployment efficiency.
The invention realizes one of the technical problems as follows: a web-based interactive application deployment delivery method, the method comprising the steps of:
step S1, when the user uses the system login interface to log in, the identity information of the user is verified and authorized; after logging in the system, automatically reading an item authority table authorized to the user from the database and displaying the item authority table on a system interface;
s2, selecting a project to be constructed from the displayed project authority table, automatically pulling codes in a source code warehouse for compiling according to the selected project, distributing the compiled application code package to a corresponding server in an application server cluster, and generating a distribution result;
and step S3, automatically logging in the corresponding server according to the distribution result, and automatically restarting the application program.
Further, the method further comprises:
step S4, collect all log information generated in the whole process, combine all log information into one log file, and output to the folder of the local working directory.
Further, the step S1 specifically includes:
step S11, a manager is arranged in the system, and the manager logs in a system background to perform authorization operation on a new user by using an account number of the manager, which specifically comprises the following steps:
when a new user is created, authorizing operable project rights for the new user by an administrator; reading the form table from the database, and filling the form table according to the user information of the new user; after the form table is filled, writing the user name and the password of the new user into a user password table of a background database, and writing the operable authority limit information and the project name of the new user into a project authority table of the background database;
step S12, when the user inputs the user name and the password in the system login interface to log in, reading the field id and the field pwd from the user password table of the database, comparing the read field id and the field pwd with the input user name and the input password respectively, generating a comparison result and writing the comparison result into the log query table of the database, and if the comparison result is consistent, entering the step S13; if the comparison result is inconsistent, ending the process;
and step S13, after the system is successfully logged in, automatically reading the project authority table authorized to the user from the database, and displaying the information in the project authority table to the system interface.
Further, the step S2 specifically includes:
s21, selecting items to be constructed from the displayed item authority list, and scanning the source code warehouse; comparing the local code of the project to be constructed with the latest version code of the corresponding project in the source code warehouse, and if the comparison result is consistent, entering step S24; if the comparison result is not consistent, go to step S22;
or the user actively selects the specified version code from the source code warehouse and goes to step S22;
step S22, automatically pulling the latest version code or the designated version code in the source code warehouse, downloading the latest version code or the designated version code to the local, and entering step S23;
step S23, calling a third-party plug-in, locally compiling the downloaded latest version code or the appointed version code according to the set compiling parameters, and then entering step S25;
step S24, calling a third-party plug-in and locally compiling the local code according to the set compiling parameters, and then entering step S25;
step S25, classifying the compiled application code package into a unified directory so as to facilitate the rollback operation of the code version; outputting the log data generated in the compiling process to a system interface, reading a difference log and a version number from a source code warehouse and displaying the difference log and the version number to the system interface;
and step S26, distributing the compiled application code package to a corresponding server in the application server cluster, and generating a state code to feed back a distribution result.
Further, the step S3 is specifically:
acquiring the generated state code, automatically logging in a corresponding server if the state of the state code is successful in distribution, automatically restarting the application program according to the project name and a preset restart command, and feeding back a restart operation result to a user;
if the state of the state code is distribution failure, the restarting operation is not executed, and the user is prompted to have distribution failure;
and if the state of the state code is unknown, executing a check and send state command, and prompting a user to check the distribution condition of the corresponding application code packet.
The second technical problem to be solved by the present invention is to provide a web-based interactive application deployment delivery system, which further reduces software delivery time and improves code deployment efficiency.
The invention realizes the second technical problem in the following way: a web-based interactive application deployment delivery system comprises a verification authorization module, a source code compiling module and a process management module;
the authentication and authorization module is used for authenticating and authorizing the identity information of the user when the user logs in by using the system login interface; after logging in the system, automatically reading an item authority table authorized to the user from the database and displaying the item authority table on a system interface;
the source code compiling module is used for selecting items to be constructed from the displayed item authority table, automatically pulling codes in a source code warehouse according to the selected items for compiling, distributing the compiled application code packages to corresponding servers in the application server cluster, and generating a distribution result;
and the process management module is used for automatically logging in the corresponding server according to the distribution result and automatically restarting the application program.
Further, the system also comprises a log construction module;
the log construction module is used for collecting all log information generated in the whole process, combining all the log information into a log file and outputting the log file to a folder of a local working directory.
Further, the verification authorization module specifically comprises an authorization unit, a verification unit and a permission display unit;
the authorization unit is used for arranging an administrator in the system and logging in a system background by using an account of the administrator to perform authorization operation on a new user, and specifically comprises the following steps:
when a new user is created, authorizing operable project rights for the new user by an administrator; reading the form table from the database, and filling the form table according to the user information of the new user; after the form table is filled, writing the user name and the password of the new user into a user password table of a background database, and writing the operable authority limit information and the project name of the new user into a project authority table of the background database;
the verification unit is used for reading a field id and a field pwd from a user password table of the database when a user inputs a user name and a password in a system login interface for login, comparing the read field id and the read field pwd with the input user name and the input password respectively, generating a comparison result and writing the comparison result into a log query table of the database, and entering the authority display unit if the comparison result is consistent; if the comparison result is inconsistent, ending the process;
and the authority display unit is used for automatically reading the project authority table authorized to the user from the database after the user successfully logs in the system, and displaying the information in the project authority table to a system interface.
Furthermore, the source code compiling module specifically comprises a code comparison unit, a code downloading unit, a first compiling unit, a second compiling unit, a classification display unit and a transceiving unit;
the code comparison unit is used for selecting items to be constructed from the displayed item authority table and scanning the source code warehouse; comparing the local code of the project to be constructed with the latest version code of the corresponding project in the source code warehouse, and entering the second compiling unit if the comparison result is consistent; if the comparison result is inconsistent, entering the code downloading unit;
or the user actively selects the code of the appointed version from the source code warehouse and enters the code downloading unit;
the code downloading unit is used for automatically pulling the latest version code or the specified version code in the source code warehouse, downloading the latest version code or the specified version code to the local, and entering the first compiling unit;
the first compiling unit is used for calling a third-party plug-in, locally compiling the downloaded latest version code or the specified version code according to the set compiling parameter and then entering the classifying and displaying unit;
the second compiling unit is used for calling a third-party plug-in, locally compiling the local code according to the set compiling parameter and then entering the classifying and displaying unit;
the classification display unit is used for classifying the compiled application code package into a unified directory so as to facilitate the rollback operation of the code version; outputting the log data generated in the compiling process to a system interface, reading a difference log and a version number from a source code warehouse and displaying the difference log and the version number to the system interface;
and the transceiving unit is used for distributing the compiled application code packet to a corresponding server in the application server cluster and generating a state code to feed back a distribution result.
Further, the process management module specifically includes:
acquiring the generated state code, automatically logging in a corresponding server if the state of the state code is successful in distribution, automatically restarting the application program according to the project name and a preset restart command, and feeding back a restart operation result to a user;
if the state of the state code is distribution failure, the restarting operation is not executed, and the user is prompted to have distribution failure;
and if the state of the state code is unknown, executing a check and send state command, and prompting a user to check the distribution condition of the corresponding application code packet.
The invention has the following advantages: by programming the packaging and deployment pipeline of the software and presenting the pipeline program in a Web form, developers can log in the Web program through a network to find out corresponding software projects, and automatic packaging, conventional testing and deployment can be realized only by one-key operation. Therefore, the scheme of the invention can further shorten the software delivery time for a software research and development team, improve the deployment efficiency of the code, improve the capability of version rollback and reduce the error rate of deployment.
Drawings
The invention will be further described with reference to the following examples with reference to the accompanying drawings.
FIG. 1 is a flowchart illustrating the implementation of a method for delivering a web-based interactive application deployment according to the present invention.
FIG. 2 is an architecture diagram of a web-based interactive application deployment delivery system of the present invention.
Detailed Description
Referring to fig. 1, the preferred embodiment of the present invention is a web-based interactive application deployment delivery method, which comprises the following steps:
step S1, when the user uses the system login interface to log in, the identity information of the user is verified and authorized; after logging in the system, automatically reading an item authority table authorized to the user from the database and displaying the item authority table on a system interface;
s2, selecting a project to be constructed from the displayed project authority table, automatically pulling codes in a source code warehouse for compiling according to the selected project, distributing the compiled application code package to a corresponding server in an application server cluster, and generating a distribution result;
and step S3, automatically logging in the corresponding server according to the distribution result and automatically restarting the application program.
In the present invention, the method further comprises:
step S4, collect all log information generated in the whole process, combine all log information into one log file, and output the log file to the folder of the local working directory (i.e., logs folder).
In specific implementation, a simple retrieval function for log information may be provided, for example, a searchlgs () function may be called at a system interface to retrieve log information; the retention time of the log information can be set according to the needs, all log files are permanently retained under the default condition, and the retention days of the log files can be set in an interface window; if the set retention days exist, the history log file is automatically deleted after the set retention days are reached.
In the present invention, the step S1 specifically includes:
step S11, an administrator admin is built in the system, and the account of the administrator admin is used to log in a system background to perform authorization operation on a new user, which specifically comprises the following steps:
when a new user is created, an administrator admin authorizes the new user with operational project rights; reading a form table from a database, wherein the form table is used for storing basic information of a new user and filling the form table according to the user information of the new user; after the form table is filled, writing the user name and the password of the new user into a user password table of a background database for subsequent user login verification, and writing the operable authority limit information and the project name (IQBeService) of the new user into a project authority limit table of the background database for acquiring the corresponding authority limit after the user logs in;
step S12, when the user inputs the user name and the password in the system login interface to log in, reading the field id (namely the user name) and the field pwd (namely the password) from the user password table of the database, comparing the read field id and the read field pwd with the input user name and the input password respectively, generating a comparison result and writing the comparison result into the log query table of the database for use in audit query, and if the comparison result is consistent, entering step S13; if the comparison result is inconsistent, ending the process;
and step S13, after the system is successfully logged in, automatically reading the project authority table authorized to the user from the database, and displaying the information in the project authority table to a system interface for the user to check and select.
The step S2 specifically includes:
s21, selecting items to be constructed from the displayed item authority list, and scanning the source code warehouse; comparing the local code of the project to be constructed with the latest version code of the corresponding project in the source code warehouse, and if the comparison result is consistent, entering step S24; if the comparison result is inconsistent, go to step S22;
or the user actively selects the specified version code from the source code warehouse and goes to step S22; that is to say, in specific implementation, the user may also rollback to a previous code version according to actual needs, for example, if the version number of the local code of the current item is 2.3, and if the user wants to rollback to a version with a version number of 2.1, then the version code corresponding to the version number of 2.1 is selected from the source code repository to download; the following is a specific example for further explanation:
for example, http://192.168.4.14: 443/svn/IQBeService @ 2567; that is, add "@ version number at the rear end of the address, such as: @2567 ", the source code with the version number 2567 of the IQBeService item can be pulled from the source code warehouse.
Step S22, automatically pulling the latest version code or the designated version code in the source code warehouse, downloading the latest version code or the designated version code to the local, and entering step S23;
step S23, calling a third-party plug-in (such as maven, gradle, nodejs, and the like), locally compiling the downloaded latest version code or the specified version code according to the set compiling parameters, and then entering step S25;
step S24, calling a third-party plug-in (such as maven, gradle, nodejs and the like), locally compiling the local code according to the set compiling parameters, and then entering step S25;
step S25, classifying the compiled application code package into a uniform directory so as to facilitate the rollback operation of the code version; outputting the log data generated in the compiling process to a system interface, reading a difference log and a version number from a source code warehouse and displaying the difference log and the version number on the system interface so as to facilitate the user to check;
and step S26, distributing the compiled application code packet to a corresponding server in the application server cluster, and generating a state code to feed back the distribution result.
In specific implementation, the application code package can be distributed to the corresponding server in the application server cluster by rsync (remote data synchronization tool); the generated status codes can be divided into three types, which are: 000, indicating successful distribution; 111, indicating a distribution failure; 010, indicates unknown.
The step S3 specifically includes:
acquiring the generated status code, automatically logging in a corresponding server if the status of the status code is successful in distribution (namely the status code is 000), automatically restarting the application program according to the project name and a preset restart command, and feeding back a restart operation result to a user;
if the state of the state code is distribution failure (namely the state code is 111), the restarting operation is not executed, and the user is prompted to have distribution failure;
if the state of the state code is unknown (namely the state code is 010), executing a check and send state command, and prompting the user to check the distribution condition of the corresponding application code packet.
Referring to fig. 2, the system for deploying and delivering web-based interactive application of the present invention includes an authentication authorization module, a source code compiling module, and a process management module;
the authentication authorization module is used for authenticating and authorizing the identity information of the user when the user logs in by using the system login interface; after logging in the system, automatically reading an item authority table authorized to the user from the database and displaying the item authority table on a system interface;
the source code compiling module is used for selecting items to be constructed from the displayed item authority table, automatically pulling codes in a source code warehouse according to the selected items for compiling, distributing the compiled application code packages to corresponding servers in the application server cluster, and generating a distribution result;
and the process management module is used for automatically logging in the corresponding server according to the distribution result and automatically restarting the application program.
In the invention, the system also comprises a log construction module;
the log construction module is used for collecting all log information generated in the whole process, combining all the log information into a log file and outputting the log file to a folder (namely logs folder) of the local working directory.
In specific implementation, a simple retrieval function for log information may be provided, for example, a searchlgs () function may be called at a system interface to retrieve log information; the retention time of the log information can be set according to the needs, all log files are permanently retained under the default condition, and the retention days of the log files can be set in an interface window; if the set retention days exist, the history log file is automatically deleted after the set retention days are reached.
In the invention, the verification authorization module specifically comprises an authorization unit, a verification unit and a permission display unit;
the authorization unit is used for setting an administrator admin inside the system and logging in a system background by using an account of the administrator admin to perform authorization operation on a new user, and specifically includes:
when a new user is created, authorizing operable project limits to the new user by an administrator admin; reading a form table from a database, wherein the form table is used for storing basic information of a new user and filling the form table according to the user information of the new user; after the form table is filled, writing the user name and the password of the new user into a user password table of a background database for subsequent user login verification, and writing the operable authority limit information and the project name (IQBeService) of the new user into a project authority limit table of the background database for acquiring the corresponding authority limit after the user logs in;
the verification unit is used for reading a field id (namely a user name) and a field pwd (namely a password) from a user password table of the database when a user inputs the user name and the password in a system login interface for login, comparing the read field id and the read field pwd with the input user name and the input password respectively, generating a comparison result and writing the comparison result into a log query table of the database for use in audit query, and entering the authority display unit if the comparison result is consistent; if the comparison result is inconsistent, ending the process;
and the permission display unit is used for automatically reading the project permission table authorized to the user from the database after the user successfully logs in the system, and displaying the information in the project permission table to a system interface for the user to check and select.
The source code compiling module specifically comprises a code comparison unit, a code downloading unit, a first compiling unit, a second compiling unit, a classification display unit and a transceiving unit;
the code comparison unit is used for selecting an item to be constructed from the displayed item authority table and scanning the source code warehouse; comparing the local code of the project to be constructed with the latest version code of the corresponding project in the source code warehouse, and entering the second compiling unit if the comparison result is consistent; if the comparison result is inconsistent, entering the code downloading unit;
or the user actively selects the code of the appointed version from the source code warehouse and enters the code downloading unit; that is to say, in specific implementation, the user may also rollback to a previous code version according to actual needs, for example, if the version number of the local code of the current item is 2.3, and if the user wants to rollback to a version with a version number of 2.1, then the version code corresponding to the version number of 2.1 is selected from the source code repository to download; the following is a specific example for further explanation:
for example, http://192.168.4.14: 443/svn/IQBeService @ 2567; that is, add "@ version number at the back end of the address, such as: @2567 ", the source code with the version number 2567 of the IQBeService item can be pulled from the source code warehouse.
The code downloading unit is used for automatically pulling the latest version code or the specified version code in the source code warehouse, downloading the latest version code or the specified version code to the local, and entering the first compiling unit;
the first compiling unit is used for calling a third-party plug-in (such as maven, gradle, nodejs and the like), locally compiling the downloaded latest version code or the specified version code according to the set compiling parameters, and then entering the classifying and displaying unit;
the second compiling unit is configured to invoke a third plug-in (e.g., a maven, a gradle, a nodejs, etc.), locally compile the local code according to the set compiling parameter, and then enter step S25;
the classification display unit is used for classifying the compiled application code package into a uniform directory so as to facilitate the rollback operation of the code version; outputting the log data generated in the compiling process to a system interface, reading a difference log and a version number from a source code warehouse and displaying the difference log and the version number on the system interface so as to facilitate the user to check;
and the transceiving unit is used for distributing the compiled application code packet to a corresponding server in the application server cluster and generating a state code to feed back a distribution result.
In specific implementation, the application code package can be distributed to corresponding servers in the application server cluster through an rsync (remote data synchronization tool); the generated status codes can be divided into three types, which are: 000, indicating successful distribution; 111, indicating a distribution failure; 010, indicates unknown.
The process management module specifically comprises:
acquiring the generated status code, automatically logging in a corresponding server if the status of the status code is that the distribution is successful (namely the status code is 000), automatically restarting the application program according to the project name and a preset restart command, and feeding back a restart operation result to a user;
if the state of the state code is distribution failure (namely the state code is 111), the restarting operation is not executed, and the user is prompted to have distribution failure;
if the state of the state code is unknown (namely the state code is 010), the checking and sending state command is executed, and the user is prompted to check the distribution condition of the corresponding application code packet.
In summary, the invention has the following advantages: by programming the packaging and deployment pipeline of the software and presenting the pipeline program in a Web form, developers can log in the Web program through a network to find out corresponding software projects, and automatic packaging, conventional testing and deployment can be realized only by one-key operation. Therefore, the scheme of the invention can further shorten the software delivery time for a software research and development team, improve the deployment efficiency of the code, improve the capability of version rollback and reduce the error rate of deployment.
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 (8)
1. A web-based interactive application deployment delivery method, characterized by: the method comprises the following steps:
step S1, when the user uses the system login interface to log in, the identity information of the user is verified and authorized; after logging in the system, automatically reading an item authority table authorized to the user from the database and displaying the item authority table on a system interface;
step S2, selecting the project to be constructed from the displayed project authority table, automatically pulling the code in the source code warehouse to compile according to the selected project, distributing the compiled application code package to the corresponding server in the application server cluster, and generating a distribution result;
step S3, automatically logging in the corresponding server according to the distribution result, and automatically restarting the application program;
the step S2 specifically includes:
s21, selecting items to be constructed from the displayed item authority list, and scanning the source code warehouse; comparing the local code of the project to be constructed with the latest version code of the corresponding project in the source code warehouse, and if the comparison result is consistent, entering step S24; if the comparison result is not consistent, go to step S22;
or the user actively selects the specified version code from the source code warehouse and goes to step S22;
step S22, automatically pulling the latest version code or the designated version code in the source code warehouse, downloading the latest version code or the designated version code to the local, and entering step S23;
step S23, calling a third-party plug-in and locally compiling the downloaded latest version code or the specified version code according to the set compiling parameters, and then entering step S25;
step S24, calling a third-party plug-in and locally compiling the local code according to the set compiling parameters, and then entering step S25;
step S25, classifying the compiled application code package into a uniform directory so as to facilitate the rollback operation of the code version; outputting the log data generated in the compiling process to a system interface, reading a difference log and a version number from a source code warehouse and displaying the difference log and the version number to the system interface;
and step S26, distributing the compiled application code package to a corresponding server in the application server cluster, and generating a state code to feed back a distribution result.
2. The web-based interactive application deployment delivery method of claim 1, wherein: the method further comprises the following steps:
step S4, collect all log information generated in the whole process, combine all log information into one log file, and output to the folder of the local working directory.
3. The web-based interactive application deployment delivery method of claim 1, wherein: the step S1 specifically includes:
step S11, a manager is built in the system, and the administrator uses an account to log in to the system background to perform an authorization operation on the new user, which specifically includes:
when a new user is created, authorizing operable project rights for the new user by an administrator; reading the form table from the database, and filling the form table according to the user information of the new user; after the form table is filled, writing the user name and the password of the new user into a user password table of a background database, and writing the operable authority limit information and the project name of the new user into a project authority table of the background database;
step S12, when the user inputs the user name and the password in the system login interface to log in, reading the field id and the field pwd from the user password table of the database, comparing the read field id and the field pwd with the input user name and the input password respectively, generating a comparison result and writing the comparison result into the log query table of the database, and if the comparison result is consistent, entering the step S13; if the comparison result is inconsistent, ending the process;
and step S13, after the system is successfully logged in, automatically reading the project authority table authorized to the user from the database, and displaying the information in the project authority table to the system interface.
4. The web-based interactive application deployment delivery method of claim 1, wherein: the step S3 specifically includes:
acquiring the generated state code, automatically logging in a corresponding server if the state of the state code is successful in distribution, automatically restarting the application program according to the project name and a preset restart command, and feeding back a restart operation result to a user;
if the state of the state code is distribution failure, the restarting operation is not executed, and the user is prompted to have distribution failure;
and if the state of the state code is unknown, executing a check and send state command, and prompting a user to check the distribution condition of the corresponding application code packet.
5. A web-based interactive application deployment delivery system, characterized by: the system comprises a verification authorization module, a source code compiling module and a process management module;
the authentication authorization module is used for authenticating and authorizing the identity information of the user when the user logs in by using the system login interface; after logging in the system, automatically reading an item authority table authorized to the user from the database and displaying the item authority table on a system interface;
the source code compiling module is used for selecting items to be constructed from the displayed item authority table, automatically pulling codes in a source code warehouse according to the selected items for compiling, distributing the compiled application code packages to corresponding servers in the application server cluster, and generating a distribution result;
the process management module is used for automatically logging in a corresponding server according to a distribution result and automatically restarting an application program;
the source code compiling module specifically comprises a code comparison unit, a code downloading unit, a first compiling unit, a second compiling unit, a classification display unit and a transceiving unit;
the code comparison unit is used for selecting items to be constructed from the displayed item authority table and scanning the source code warehouse; comparing the local code of the project to be constructed with the latest version code of the corresponding project in the source code warehouse, and entering the second compiling unit if the comparison result is consistent; if the comparison result is inconsistent, entering the code downloading unit;
or the user actively selects the appointed version code from the source code warehouse and enters the code downloading unit;
the code downloading unit is used for automatically pulling a latest version code or a specified version code in the source code warehouse, downloading the latest version code or the specified version code to the local, and entering the first compiling unit;
the first compiling unit is used for calling a third-party plug-in, locally compiling the downloaded latest version code or the specified version code according to the set compiling parameter and then entering the classifying and displaying unit;
the second compiling unit is used for calling a third-party plug-in, locally compiling the local code according to the set compiling parameter and then entering the classifying and displaying unit;
the classification display unit is used for classifying the compiled application code package into a uniform directory so as to facilitate the rollback operation of the code version; outputting the log data generated in the compiling process to a system interface, reading a difference log and a version number from a source code warehouse and displaying the difference log and the version number to the system interface;
and the transceiving unit is used for distributing the compiled application code packet to a corresponding server in the application server cluster and generating a state code to feed back a distribution result.
6. The web-based interactive application deployment delivery system of claim 5, wherein: the system also includes a log construction module;
the log construction module is used for collecting all log information generated in the whole process, combining all the log information into a log file and outputting the log file to a folder of a local working directory.
7. The web-based interactive application deployment delivery system of claim 5, wherein: the verification authorization module specifically comprises an authorization unit, a verification unit and a permission display unit;
the authorization unit is used for setting an administrator in the system and logging in a system background to perform authorization operation on a new user by using an account of the administrator, and specifically includes:
when a new user is created, authorizing operable project limits for the new user by an administrator; reading the form table from the database, and filling the form table according to the user information of the new user; after the form table is filled, writing the user name and the password of the new user into a user password table of a background database, and writing the operable authority limit information and the project name of the new user into a project authority table of the background database;
the verification unit is used for reading a field id and a field pwd from a user password table of the database when a user inputs a user name and a password in a system login interface for login, comparing the read field id and the read field pwd with the input user name and the input password respectively, generating a comparison result and writing the comparison result into a log query table of the database, and entering the authority display unit if the comparison result is consistent; if the comparison result is inconsistent, ending the process;
and the permission display unit is used for automatically reading the project permission table authorized to the user from the database after the user successfully logs in the system, and displaying the information in the project permission table to the system interface.
8. The web-based interactive application deployment delivery system of claim 5, wherein: the process management module specifically comprises:
acquiring the generated state code, automatically logging in a corresponding server if the state of the state code is successful in distribution, automatically restarting the application program according to the project name and a preset restart command, and feeding back a restart operation result to a user;
if the state of the state code is distribution failure, the restarting operation is not executed, and the user is prompted to have distribution failure;
and if the state of the state code is unknown, executing a check and send state command, and prompting a user to check the distribution condition of the corresponding application code packet.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910343240.4A CN110221841B (en) | 2019-04-26 | 2019-04-26 | Web-based interactive application deployment and delivery method and system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910343240.4A CN110221841B (en) | 2019-04-26 | 2019-04-26 | Web-based interactive application deployment and delivery method and system |
Publications (2)
Publication Number | Publication Date |
---|---|
CN110221841A CN110221841A (en) | 2019-09-10 |
CN110221841B true CN110221841B (en) | 2022-06-17 |
Family
ID=67820065
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910343240.4A Active CN110221841B (en) | 2019-04-26 | 2019-04-26 | Web-based interactive application deployment and delivery method and system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110221841B (en) |
Families Citing this family (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112114815B (en) * | 2020-09-23 | 2024-05-14 | 南京楚航科技有限公司 | Automatic compiling and software version publishing method |
CN112256319B (en) * | 2020-10-27 | 2023-05-30 | 厦门吉比特网络技术股份有限公司 | iOS installation package version management system and method based on safety environment |
CN113343184B (en) * | 2021-06-02 | 2025-04-01 | 中国工商银行股份有限公司 | Code reading and writing management method, device and system |
CN113805935A (en) * | 2021-09-16 | 2021-12-17 | 平安健康保险股份有限公司 | Code module issuing method and device, computer equipment and readable storage medium |
CN114115835B (en) * | 2022-01-27 | 2022-05-17 | 广州庚亿信息科技有限公司 | Automatic coding execution flow construction method and device, storage medium and intelligent terminal |
CN115951929B (en) * | 2022-12-28 | 2024-03-19 | 广州宇中网络科技有限公司 | Third party library source code management method |
CN116866327B (en) * | 2023-07-11 | 2024-08-09 | 创泽智能机器人集团股份有限公司 | Method and device for viewing svn log based on web |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106055377A (en) * | 2016-06-03 | 2016-10-26 | 北京奇虎科技有限公司 | Method for achieving distributed compiling and distributed compiling system |
CN106775602A (en) * | 2015-11-20 | 2017-05-31 | 北京国双科技有限公司 | A code release method and device |
CN107577469A (en) * | 2017-08-21 | 2018-01-12 | 厦门悦讯教育科技有限公司 | A kind of Software package method for release management |
CN108241493A (en) * | 2018-01-09 | 2018-07-03 | 政采云有限公司 | The automation continuous integrating of distributed software system and delivery method, device and system |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US10416974B2 (en) * | 2017-10-06 | 2019-09-17 | Chicago Mercantile Exchange Inc. | Dynamic tracer message logging based on bottleneck detection |
-
2019
- 2019-04-26 CN CN201910343240.4A patent/CN110221841B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106775602A (en) * | 2015-11-20 | 2017-05-31 | 北京国双科技有限公司 | A code release method and device |
CN106055377A (en) * | 2016-06-03 | 2016-10-26 | 北京奇虎科技有限公司 | Method for achieving distributed compiling and distributed compiling system |
CN107577469A (en) * | 2017-08-21 | 2018-01-12 | 厦门悦讯教育科技有限公司 | A kind of Software package method for release management |
CN108241493A (en) * | 2018-01-09 | 2018-07-03 | 政采云有限公司 | The automation continuous integrating of distributed software system and delivery method, device and system |
Non-Patent Citations (1)
Title |
---|
基于RBAC的通知发布系统的设计与实现;刘金泉 等;《软件》;20151231(第12期);全文 * |
Also Published As
Publication number | Publication date |
---|---|
CN110221841A (en) | 2019-09-10 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110221841B (en) | Web-based interactive application deployment and delivery method and system | |
CN111263933B (en) | Live debugging instance in deployed container platform | |
CN107577469B (en) | software packaging and publishing management method | |
US10228932B2 (en) | Upgrade verification tool | |
US20110296386A1 (en) | Methods and Systems for Validating Changes Submitted to a Source Control System | |
CN103984573B (en) | The installation method and device of application program | |
US20200133711A1 (en) | Event-Triggered Configuration of Workflow Processes for Computer Software Development Systems | |
US20030182652A1 (en) | Software building and deployment system and method | |
US20090307763A1 (en) | Automated Test Management System and Method | |
CN107896244B (en) | Version file distribution method, client and server | |
CN111880950A (en) | Cloud service API management method and system based on government affair cloud platform | |
CN112506807B (en) | Automatic test system for interface serving multiple systems | |
US20050188262A1 (en) | Simultaneous execution of test suites on different platforms | |
US20140181793A1 (en) | Method of automatically testing different software applications for defects | |
CN106575227B (en) | Automatic software update framework | |
WO2015006308A1 (en) | Automated database migration architecture | |
WO1998027488A1 (en) | Software release metric reporting system and method | |
CN112083951A (en) | Software package unified management method and system supporting multiple operating system platforms | |
US8738895B2 (en) | Testing a configuration change | |
US8060919B2 (en) | Automated password tool and method of use | |
US12229121B2 (en) | Propagated deletion of database records and derived data | |
CN107918564A (en) | Data transmission exception processing method, device, electronic equipment and storage medium | |
US8122101B2 (en) | Methods and systems for distributing software | |
CN108074058B (en) | Storage management method and device | |
TW202411858A (en) | Systems and methods for database migration, and systems for migration of an online database |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |