CN106775602B - Code publishing method and device - Google Patents

Code publishing method and device Download PDF

Info

Publication number
CN106775602B
CN106775602B CN201510812033.0A CN201510812033A CN106775602B CN 106775602 B CN106775602 B CN 106775602B CN 201510812033 A CN201510812033 A CN 201510812033A CN 106775602 B CN106775602 B CN 106775602B
Authority
CN
China
Prior art keywords
code
issued
server
path information
database
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201510812033.0A
Other languages
Chinese (zh)
Other versions
CN106775602A (en
Inventor
何钧禄
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Gridsum Technology Co Ltd
Original Assignee
Beijing Gridsum Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Gridsum Technology Co Ltd filed Critical Beijing Gridsum Technology Co Ltd
Priority to CN201510812033.0A priority Critical patent/CN106775602B/en
Publication of CN106775602A publication Critical patent/CN106775602A/en
Application granted granted Critical
Publication of CN106775602B publication Critical patent/CN106775602B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Information Transfer Between Computers (AREA)

Abstract

The invention discloses a code publishing method and a code publishing device, relates to the technical field of software application, and mainly aims to solve the problem of low efficiency of manual code publishing. The main technical scheme of the invention is as follows: firstly, receiving content information of a code to be issued, wherein the content information comprises: uploading path information of a server and product identification of the code to be issued; when the product identification is matched with a product identification stored in a database, detecting the path information to obtain a path information detection result of the code to be issued; when the detection result is matched with the detection content stored in the database, determining a server directory for issuing the code; finally, issuing the acquired code to be issued according to the server directory; wherein the product identification stored in the database corresponds to path information for the product. The invention is mainly used for ensuring the normal release of the code and improving the efficiency of the code release.

Description

Code publishing method and device
Technical Field
The invention relates to the technical field of software application, in particular to a code publishing method and device.
Background
And compiling the functional code by a developer according to the project requirement, wherein the functional code can be a software compiled code, a webpage compiled code, an operation and maintenance functional module compiled code and the like. After the code is written, the code needs to be deployed to a server to run, and after the code is run, the service is indirectly provided for the end user, and the process is called code publishing. In daily operation and maintenance work, code release is one of the most common works, especially the updating of webpage code, and fragmented release is very frequently required. Currently, the code release is generally realized by adopting an rsync command, the rsync command needs to manually input a code release control command according to a preset command format in the code release process, a result corresponding to the control command is fed back to a developer, the developer performs gradual confirmation according to the feedback, then enters the next code release process after the confirmation, and completes the code release after the gradual confirmation.
Although the code issuing can be realized by adopting the rsync command, each code issuing requires a plurality of manual operation steps, the operation process is complex, and the demand for issuing the code increases with the increase of projects and developers, so that the work efficiency of issuing the code is low. In addition, in the process of issuing the code by using the rsync command, because a preset code issuing control command is manually input, the code issuing is easily failed or is wrong due to input errors, so that the code issuing cannot be normally performed.
Disclosure of Invention
In view of this, embodiments of the present invention provide a method and an apparatus for code release, which mainly aim to improve efficiency of code release while ensuring normal code release.
In order to achieve the purpose, the invention mainly provides the following technical scheme:
in one aspect, an embodiment of the present invention provides a code publishing method, where the method includes:
receiving content information of a code to be issued, wherein the content information comprises: uploading path information of a server and product identification of the code to be issued;
when the product identification is matched with a product identification stored in a database, detecting the path information to obtain a path information detection result of the code to be issued;
when the detection result is matched with the detection content stored in the database, determining a server directory for issuing the code;
issuing the acquired code to be issued according to the server directory; wherein the product identification stored in the database corresponds to path information for the product.
On the other hand, an embodiment of the present invention further provides a code publishing apparatus, where the apparatus includes:
a receiving unit, configured to receive content information of a code to be issued, where the content information includes: uploading path information of a server and product identification of the code to be issued;
the detection unit is used for detecting the path information when the product identification is matched with the product identification stored in the database so as to obtain a path information detection result of the code to be issued;
a determining unit, configured to determine a server directory of the release code when the detection result matches the detection content stored in the database;
the issuing unit is used for issuing the acquired code to be issued according to the server directory; wherein the product identification stored in the database corresponds to path information for the product.
By the technical scheme, the technical scheme provided by the embodiment of the invention at least has the following advantages:
the invention provides a code issuing method and a device, firstly receiving content information of a code to be issued, wherein the content information comprises: uploading path information of a server and product identification of the code to be issued; when the product identification is matched with a product identification stored in a database, detecting the path information to obtain a path information detection result of the code to be issued; when the detection result is matched with the detection content stored in the database, determining a server directory for issuing the code; finally, issuing the acquired code to be issued according to the server directory; wherein the product identification stored in the database corresponds to path information for the product. Compared with the prior art, the method and the device can determine the server directory for releasing the codes by detecting the path information of the uploading server of the codes to be released, release the obtained codes to be released according to the server directory, do not need to manually input the code release control command according to the preset command format, can improve the efficiency of code release, can not cause the failure or error of code release due to input errors, and can realize automatic management of code release and the code release of a plurality of service lines and a plurality of projects. Therefore, the embodiment of the invention realizes that the efficiency of code release is improved while the normal release of the code is ensured.
The foregoing description is only an overview of the technical solutions of the present invention, and the embodiments of the present invention are described below in order to make the technical means of the present invention more clearly understood and to make the above and other objects, features, and advantages of the present invention more clearly understandable.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
Fig. 1 is a schematic flowchart of a code issuing method according to an embodiment of the present invention;
fig. 2 is a schematic flowchart of another code issuing method according to an embodiment of the present invention;
fig. 3 is a schematic structural diagram of a code issuing apparatus according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of another code issuing apparatus according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
As shown in fig. 1, a method for issuing a code according to an embodiment of the present invention includes:
101. and receiving the content information of the code to be issued.
Wherein the content information includes: and uploading the path information of the server and the product identification of the code to be issued. The product identifier may be a product name, an ID (Identity, Identity number), or the like, so as to determine an upload server of the code to be issued according to the path information, and determine whether the same product identifier exists in the database according to the product identifier.
It should be noted that, the execution subject of the embodiment of the present invention may be a terminal device for managing code distribution, including group management, user management, project management, and the like. The user can log in and manage the authority, specifically, manage by calling a preset SSO API (Single Sign On Application Programming Interface) management Interface. And enabling the user to have the right to input the code to be issued. The preset SSO API management interface can be configured according to actual requirements, and when a user logs in the management system, the preset SSOAPI management interface is called.
102. And when the product identification is matched with the product identification stored in the database, detecting the path information to obtain a path information detection result of the code to be issued.
Wherein the product identification stored in the database corresponds to path information for the product.
It should be noted that, when the product identifier does not match with any product identifier stored in the database, the MD5(Message-Digest Algorithm5, information-Digest Algorithm 5) value of the server corresponding to the product identifier does not exist in the database; when the product identifier matches with a product identifier stored in a database, detecting path information, specifically, detecting whether an MD5 value of an upload server determined according to the path information matches with a preset MD5 value stored in the database, where the database may include a plurality of preset MD5 values, and each preset MD5 value corresponds to a server directory.
It should be noted that the tested codes may be extracted into the database through a preset PULL extraction function, and then compressed and an MD5 value is generated to perform a check with a preset MD5 value. The preset PULL function can be configured according to actual requirements.
103. And when the detection result is matched with the detection content stored in the database, determining the server directory for issuing the code.
For the embodiment of the present invention, the step 103 may specifically include: and when the MD5 value of the uploading server determined according to the path information is matched with the preset MD5 value stored in the database, determining the server directory corresponding to the preset MD5 value as the server directory of the release code.
104. And issuing the acquired code to be issued according to the server directory.
For the embodiment of the present invention, the step 104 may specifically include: and softly linking the path of the uploading server of the code to be issued to a server directory, and then loading the code to be issued so as to issue the code to be issued. Specifically, related information such as a release item, an upload server, version information, and the like may be pushed to a server directory of a release code through a preset PUSH function. The preset PUSH function can be configured according to actual requirements.
Further, when the code is successfully issued, prompt information of successful code issue can be output, wherein the prompt information can be text prompt information, picture prompt information, audio prompt information and video prompt information.
The code issuing method provided by the embodiment of the invention firstly receives the content information of the code to be issued, wherein the content information comprises the following components: uploading path information of a server and product identification of the code to be issued; when the product identification is matched with a product identification stored in a database, detecting the path information to obtain a path information detection result of the code to be issued; when the detection result is matched with the detection content stored in the database, determining a server directory for issuing the code; finally, issuing the acquired code to be issued according to the server directory; wherein the product identification stored in the database corresponds to path information for the product. Compared with the prior art, the method and the device can determine the server directory for releasing the codes by detecting the path information of the uploading server of the codes to be released, release the obtained codes to be released according to the server directory, do not need to manually input the code release control command according to the preset command format, can improve the efficiency of code release, can not cause the failure or error of code release due to input errors, and can realize automatic management of code release and the code release of a plurality of service lines and a plurality of projects. Therefore, the embodiment of the invention realizes that the efficiency of code release is improved while the normal release of the code is ensured.
Specifically, as shown in fig. 2, another code publishing method provided in the embodiment of the present invention includes:
201. and receiving the content information of the code to be issued.
Wherein the content information includes: and uploading the path information of the server and the product identification of the code to be issued. The product identification may be a product name, ID information, or the like.
202. And when the product identification is matched with the product identification stored in the database, detecting the path information to obtain a path information detection result of the code to be issued.
The path information includes identification information corresponding to each hierarchical path. The product identification stored in the database corresponds to path information for the product.
For the embodiment of the present invention, the detecting the path information may specifically include: analyzing the path information of the uploading server of the code to be issued to obtain the path identifier of at least one layer of path; and detecting whether the path identifier is matched with a preset path identifier stored in the database.
For example, the path information of the uploading server of the code to be issued is http://123/456/789, 3 hierarchical path identifiers are obtained through analysis and are 123, 123/456 and 123/456/789 respectively, and the 3 path identifiers are matched with preset path identifiers stored in a database respectively.
203. And when the MD5 value of the uploading server is detected to be the same as the preset MD5 value stored in the database, determining the server directory corresponding to the preset MD5 value as the server directory of the issued code.
For the embodiment of the present invention, the MD5 value of the upload server may be determined according to the path information, for example, the MD5 value of the upload server is: MD5(fuwuqi) ═ 0ca175b9c0f726a831d895e 269332461, where fuwuqi is a digital signature generated by the upload server of the code to be issued. MD5 treats the code to be issued as a large text message, and generates this unique MD5 message digest through its irreversible string transformation algorithm (this technique is prior art and therefore will not be described in detail). If the preset MD5 value identical to the MD5 value exists in the database, the server directory corresponding to the preset MD5 value is determined as the server directory of the release code, wherein the database may include different preset MD5 values and different server directories corresponding to different preset MD5 values.
204. And linking the path information of the uploading server of the code to be issued to a server directory and loading the code to be issued so as to issue the code to be issued.
Further, after step 204, the method further comprises: when the problem of issuing the code to be issued is detected, adjusting the code to be issued to the code of the version information which can be successfully issued by a preset recovery operation function (for example, a ROLLBACK function). The preset recovery operation function can be configured according to actual requirements.
For example, 5 versions of codes of the information are reserved in the upload server, when the code to be issued is issued and it is detected that a problem occurs in issuing the code to be issued, the code to be issued is rolled back to the code of the version information which can be successfully issued through a preset recovery operation function, so that the code to be issued is successfully issued.
Further, in the actual code issuing process, firstly, in order to ensure the security of the code issuing device, a corresponding issuing authority needs to be set for a user who issues the code, so that the user who has the corresponding issuing authority can issue the code. Secondly, in order to prevent that other users cannot obtain the functions realized by the published codes due to selection of wrong operating environments when the other users obtain the published codes after the code is published, whether the operating environments of the codes input by the code publishing operating interface are correct or not needs to be prompted, so that the other users can operate under the correct operating environments after obtaining the published codes to obtain the corresponding functions of the published codes. Thirdly, in order to prevent the situation that the to-be-issued code disappears due to the fact that a computer used for issuing the code locally fails, the code can be backed up by placing the to-be-issued code into an online code warehouse.
Another code issuing method provided in the embodiment of the present invention is a method for receiving content information of a code to be issued, where the content information includes: uploading path information of a server and product identification of the code to be issued; when the product identification is matched with a product identification stored in a database, detecting the path information to obtain a path information detection result of the code to be issued; when the detection result is matched with the detection content stored in the database, determining a server directory for issuing the code; finally, issuing the acquired code to be issued according to the server directory; wherein the product identification stored in the database corresponds to path information for the product. Compared with the prior art, the method and the device can determine the server directory for releasing the codes by detecting the path information of the uploading server of the codes to be released, release the obtained codes to be released according to the server directory, do not need to manually input the code release control command according to the preset command format, can improve the efficiency of code release, can not cause the failure or error of code release due to input errors, and can realize automatic management of code release and the code release of a plurality of service lines and a plurality of projects. Therefore, the embodiment of the invention realizes that the efficiency of code release is improved while the normal release of the code is ensured.
Further, as a specific implementation of the method shown in fig. 1, an embodiment of the present invention provides a code publishing apparatus, and as shown in fig. 3, the apparatus includes: a receiving unit 31, a detecting unit 32, a determining unit 33, and an issuing unit 34.
The receiving unit 31 may be configured to receive content information of a code to be issued, where the content information includes: and uploading the path information of the server and the product identification of the code to be issued.
The detecting unit 32 may be configured to detect the path information when the product identifier matches a product identifier stored in a database, so as to obtain a path information detection result for the code to be issued.
The determining unit 33 may be configured to determine the server directory of the issued code when the detection result matches the detection content stored in the database.
The issuing unit 34 may be configured to issue the obtained code to be issued according to the server directory; wherein the product identification stored in the database corresponds to path information for the product.
It should be noted that other corresponding descriptions of the functional units related to the code issuing apparatus provided in the embodiment of the present invention may refer to the corresponding description in fig. 1, and are not described herein again.
The code release device provided by the embodiment of the invention firstly receives the content information of the code to be released, wherein the content information comprises: uploading path information of a server and product identification of the code to be issued; when the product identification is matched with a product identification stored in a database, detecting the path information to obtain a path information detection result of the code to be issued; when the detection result is matched with the detection content stored in the database, determining a server directory for issuing the code; finally, issuing the acquired code to be issued according to the server directory; wherein the product identification stored in the database corresponds to path information for the product. Compared with the prior art, the method and the device can determine the server directory for releasing the codes by detecting the path information of the uploading server of the codes to be released, release the obtained codes to be released according to the server directory, do not need to manually input the code release control command according to the preset command format, can improve the efficiency of code release, can not cause the failure or error of code release due to input errors, and can realize automatic management of code release and the code release of a plurality of service lines and a plurality of projects. Therefore, the embodiment of the invention realizes that the efficiency of code release is improved while the normal release of the code is ensured.
Further, as a specific implementation of the method shown in fig. 2, an embodiment of the present invention provides another code issuing apparatus, as shown in fig. 4, where the apparatus includes: a receiving unit 41, a detecting unit 42, a determining unit 43, and an issuing unit 44.
The receiving unit 41 may be configured to receive content information of a code to be issued, where the content information includes: and uploading the path information of the server and the product identification of the code to be issued.
The detecting unit 42 may be configured to detect the path information when the product identifier matches a product identifier stored in a database, so as to obtain a path information detection result for the code to be issued.
The determining unit 43 may be configured to determine the server directory of the issued code when the detection result matches the detection content stored in the database.
The issuing unit 44 may be configured to issue the obtained code to be issued according to the server directory; wherein the product identification stored in the database corresponds to path information for the product.
Optionally, the path information includes identification information corresponding to each hierarchical path.
Further, the detection unit 42 includes: an analysis module 421 and a detection module 422.
The parsing module 421 may be configured to parse the path information of the upload server of the code to be issued, so as to obtain the path identifier of the at least one layer of path.
The detecting module 422 may be configured to detect whether the path identifier matches preset path identifier information stored in the database.
The determining unit 43 may be specifically configured to determine, when it is detected that the MD5 value of the upload server is the same as the preset MD5 value stored in the database, the server directory corresponding to the preset MD5 value as the server directory of the release code.
Further, the issue unit 44 includes: link module 441, load module 442.
The linking module 441 may be configured to link path information of the upload server of the to-be-issued code to the server directory.
The loading module 442 may be configured to load the code to be issued, so as to issue the code to be issued.
Further, the apparatus further comprises: an adjustment unit 45.
The adjusting unit 45 may be configured to, when it is detected that a problem occurs in issuing the code to be issued, adjust the code to be issued to a code of version information that can be successfully issued by using a preset recovery operation function.
It should be noted that other corresponding descriptions of the functional units related to another code issuing apparatus provided in the embodiment of the present invention may refer to the corresponding description in fig. 2, and are not described herein again.
Another code issuing device provided in an embodiment of the present invention first receives content information of a code to be issued, where the content information includes: uploading path information of a server and product identification of the code to be issued; when the product identification is matched with a product identification stored in a database, detecting the path information to obtain a path information detection result of the code to be issued; when the detection result is matched with the detection content stored in the database, determining a server directory for issuing the code; finally, issuing the acquired code to be issued according to the server directory; wherein the product identification stored in the database corresponds to path information for the product. Compared with the prior art, the method and the device can determine the server directory for releasing the codes by detecting the path information of the uploading server of the codes to be released, release the obtained codes to be released according to the server directory, do not need to manually input the code release control command according to the preset command format, can improve the efficiency of code release, can not cause the failure or error of code release due to input errors, and can realize automatic management of code release and the code release of a plurality of service lines and a plurality of projects. Therefore, the embodiment of the invention realizes that the efficiency of code release is improved while the normal release of the code is ensured.
The code issuing device comprises a processor and a memory, wherein the receiving unit, the detecting unit, the determining unit, the issuing unit and the like are stored in the memory as program units, and the processor executes the program units stored in the memory to realize corresponding functions.
The processor comprises a kernel, and the kernel calls the corresponding program unit from the memory. The kernel can be set to be one or more than one, and the problem of low efficiency of manually issuing the codes is solved by adjusting the kernel parameters.
The memory may include volatile memory in a computer readable medium, Random Access Memory (RAM) and/or nonvolatile memory such as Read Only Memory (ROM) or flash memory (flash RAM), and the memory includes at least one memory chip.
The present application further provides a computer program product adapted to perform program code for initializing the following method steps when executed on a data processing device: firstly, receiving content information of a code to be issued, wherein the content information comprises: uploading path information of a server and product identification of the code to be issued; when the product identification is matched with a product identification stored in a database, detecting the path information to obtain a path information detection result of the code to be issued; when the detection result is matched with the detection content stored in the database, determining a server directory for issuing the code; finally, issuing the acquired code to be issued according to the server directory; wherein the product identification stored in the database corresponds to path information for the product.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
In a typical configuration, a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
The memory may include forms of volatile memory in a computer readable medium, Random Access Memory (RAM) and/or non-volatile memory, such as Read Only Memory (ROM) or flash memory (flash RAM). The memory is an example of a computer-readable medium.
Computer-readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), Static Random Access Memory (SRAM), Dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), Read Only Memory (ROM), Electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), Digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices, or any other non-transmission medium that can be used to store information that can be accessed by a computing device. As defined herein, a computer readable medium does not include a transitory computer readable medium such as a modulated data signal and a carrier wave.
The above are merely examples of the present application and are not intended to limit the present application. Various modifications and changes may occur to those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included in the scope of the claims of the present application.

Claims (10)

1. A method for code distribution, comprising:
receiving content information of a code to be issued, wherein the content information comprises: uploading path information of a server and product identification of the code to be issued;
when the product identification is matched with the product identification stored in the database, detecting the path information of the uploading server of the code to be issued so as to obtain a path information detection result of the uploading server of the code to be issued;
when the detection result is matched with the detection content stored in the database, determining a server directory of the code to be issued;
issuing the acquired code to be issued according to the server directory; wherein the product identification stored in the database corresponds to path information for the product;
the path information of the uploading server of the code to be issued comprises identification information corresponding to each hierarchical path, and the detecting the path information of the uploading server of the code to be issued comprises:
analyzing the path information of the uploading server of the code to be issued to obtain the path identifier of at least one layer of path;
and detecting whether the path identifier is matched with a preset path identifier stored in the database.
2. The method of claim 1, wherein when the detection result matches the detection content stored in the database, determining the server directory of the code to be issued comprises:
and when the MD5 value of the uploading server is detected to be the same as the preset MD5 value stored in the database, determining the server directory corresponding to the preset MD5 value as the server directory of the code to be issued.
3. The method according to claim 1, wherein publishing the acquired code to be published according to the server directory comprises:
and linking the path information of the uploading server of the code to be issued to the server directory and loading the code to be issued so as to issue the code to be issued.
4. The method according to claim 1, wherein after the issuing the obtained code to be issued according to the server directory, the method further comprises:
when the problem of the code to be issued is detected, the code to be issued is adjusted to the code of the version information which can be successfully issued through a preset recovery operation function.
5. A code distribution apparatus, comprising:
a receiving unit, configured to receive content information of a code to be issued, where the content information includes: uploading path information of a server and product identification of the code to be issued;
the detection unit is used for detecting the path information of the uploading server of the code to be issued when the product identification is matched with the product identification stored in the database so as to obtain the path information detection result of the uploading server of the code to be issued;
the determining unit is used for determining the server directory of the code to be issued when the detection result is matched with the detection content stored in the database;
the issuing unit is used for issuing the acquired code to be issued according to the server directory; wherein the product identification stored in the database corresponds to path information for the product;
the path information of the upload server of the code to be issued includes identification information corresponding to each hierarchical path, and the detection unit includes:
the analysis module is used for analyzing the path information of the uploading server of the code to be issued so as to obtain the path identifier of at least one layer of path;
and the detection module is used for detecting whether the path identifier is matched with a preset path identifier stored in the database.
6. The apparatus of claim 5,
the determining unit is specifically configured to determine, when it is detected that the MD5 value of the upload server is the same as a preset MD5 value stored in the database, the server directory corresponding to the preset MD5 value as the server directory of the code to be issued.
7. The apparatus of claim 5, wherein the publishing unit comprises:
the link module is used for linking the path information of the uploading server of the code to be issued to the server directory;
and the loading module is used for loading the code to be issued so as to issue the code to be issued.
8. The apparatus of claim 5, further comprising:
and the adjusting unit is used for adjusting the code to be issued into the code of the version information which can be successfully issued by presetting a recovery operation function when the problem of issuing the code to be issued is detected.
9. A storage medium, characterized in that the storage medium includes a stored program, wherein when the program runs, a device in which the storage medium is located is controlled to execute the code distribution method according to any one of claims 1 to 4.
10. A processor, characterized in that the processor is configured to run a program, wherein the program when running executes the code distribution method of any one of claims 1 to 4.
CN201510812033.0A 2015-11-20 2015-11-20 Code publishing method and device Active CN106775602B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510812033.0A CN106775602B (en) 2015-11-20 2015-11-20 Code publishing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510812033.0A CN106775602B (en) 2015-11-20 2015-11-20 Code publishing method and device

Publications (2)

Publication Number Publication Date
CN106775602A CN106775602A (en) 2017-05-31
CN106775602B true CN106775602B (en) 2020-01-17

Family

ID=58885389

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510812033.0A Active CN106775602B (en) 2015-11-20 2015-11-20 Code publishing method and device

Country Status (1)

Country Link
CN (1) CN106775602B (en)

Families Citing this family (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109408065A (en) * 2018-10-12 2019-03-01 上海庆科信息技术有限公司 A kind of code publishing tool
CN109683951A (en) * 2018-12-21 2019-04-26 北京量子保科技有限公司 A kind of code method for automatically releasing, system, medium and electronic equipment
CN110221841B (en) * 2019-04-26 2022-06-17 福州慧校通教育信息技术有限公司 Web-based interactive application deployment and delivery method and system
CN111182081A (en) * 2020-01-06 2020-05-19 深圳市随手信科科技有限公司 Static resource publishing method, device, storage medium and terminal
CN111367531B (en) * 2020-03-26 2023-05-12 北京中指讯博数据信息技术有限公司 Code processing method and device
CN112650480A (en) * 2020-12-21 2021-04-13 上海多维度网络科技股份有限公司 Code distribution method and phase device
CN112559030B (en) * 2021-01-18 2021-10-08 杭银消费金融股份有限公司 Code release alarm monitoring method and system
CN113590172A (en) * 2021-07-28 2021-11-02 北京百度网讯科技有限公司 Code file publishing method, device, equipment and storage medium
CN114115934A (en) * 2021-10-25 2022-03-01 珠海格力电器股份有限公司 Program issuing method, electronic device and storage medium
CN114217821A (en) * 2022-02-21 2022-03-22 深圳市秦丝科技有限公司 Multi-server code gray scale release method and device, electronic equipment and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101635640A (en) * 2009-09-04 2010-01-27 江苏天智互联科技有限公司 Method for automatically releasing terminal program version of WEB network station system server
CN102195802A (en) * 2010-03-18 2011-09-21 中兴通讯股份有限公司 Terminal software transmission method, server and terminal
CN103226485A (en) * 2013-05-21 2013-07-31 北京奇虎科技有限公司 Code publishing method, machine and system

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20120091601A (en) * 2011-02-09 2012-08-20 주식회사 엘지유플러스 Application automatic developing tool for application developing and registering

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101635640A (en) * 2009-09-04 2010-01-27 江苏天智互联科技有限公司 Method for automatically releasing terminal program version of WEB network station system server
CN102195802A (en) * 2010-03-18 2011-09-21 中兴通讯股份有限公司 Terminal software transmission method, server and terminal
CN103226485A (en) * 2013-05-21 2013-07-31 北京奇虎科技有限公司 Code publishing method, machine and system

Also Published As

Publication number Publication date
CN106775602A (en) 2017-05-31

Similar Documents

Publication Publication Date Title
CN106775602B (en) Code publishing method and device
CN110825420B (en) Method, device, equipment and storage medium for updating configuration parameters of distributed cluster
CN104793946B (en) Dispositions method and system are applied based on cloud computing platform
US10437703B2 (en) Correlation of source code with system dump information
CN102736978B (en) A kind of method and device detecting the installment state of application program
US9892122B2 (en) Method and apparatus for determining a range of files to be migrated
JP2017123188A (en) Recovery of tenant data across tenant moves
CN111144839B (en) Project construction method, continuous integration system and terminal equipment
US20140208169A1 (en) Domain scripting language framework for service and system integration
CN110515795B (en) Big data component monitoring method and device and electronic equipment
CN107169000A (en) Static resource dissemination method and device
CN111367531B (en) Code processing method and device
CN111367890A (en) Data migration method and device, computer equipment and readable storage medium
CN112631763A (en) Program changing method and device of host program
CN111352631B (en) Interface compatibility detection method and device
CN111694724B (en) Test method and device of distributed form system, electronic equipment and storage medium
CN116599881A (en) Cloud platform tenant modeling test method, device, equipment and storage medium
CN115080114B (en) Application program transplanting processing method, device and medium
CN103167016A (en) Browser crash data uploading and processing method and browser crush data uploading and processing device
CN113419949B (en) Abnormality detection method, device, equipment and storage medium for data processing
US20240031166A1 (en) Web-side data signature method and apparatus and computer device
US20210349808A1 (en) Source quality check service
CN106708541A (en) Version upgrading processing method and apparatus
CN111460436B (en) Unstructured data operation method and system based on blockchain
CN114490196A (en) Database switching method, system, device and medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information
CB02 Change of applicant information

Address after: 100083 No. 401, 4th Floor, Haitai Building, 229 North Fourth Ring Road, Haidian District, Beijing

Applicant after: Beijing Guoshuang Technology Co.,Ltd.

Address before: 100086 Cuigong Hotel, 76 Zhichun Road, Shuangyushu District, Haidian District, Beijing

Applicant before: Beijing Guoshuang Technology Co.,Ltd.

GR01 Patent grant
GR01 Patent grant