[go: up one dir, main page]

CN109165018A - Code method for automatically releasing, device, computer equipment and storage medium - Google Patents

Code method for automatically releasing, device, computer equipment and storage medium Download PDF

Info

Publication number
CN109165018A
CN109165018A CN201811048245.6A CN201811048245A CN109165018A CN 109165018 A CN109165018 A CN 109165018A CN 201811048245 A CN201811048245 A CN 201811048245A CN 109165018 A CN109165018 A CN 109165018A
Authority
CN
China
Prior art keywords
code
outer net
environment
intranet
publication
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201811048245.6A
Other languages
Chinese (zh)
Inventor
贺家隆
陈嘉嘉
张松柏
徐祥林
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Taizhou Technology Co Ltd
Original Assignee
Shenzhen Taizhou 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 Shenzhen Taizhou Technology Co Ltd filed Critical Shenzhen Taizhou Technology Co Ltd
Priority to CN201811048245.6A priority Critical patent/CN109165018A/en
Priority to PCT/CN2018/117913 priority patent/WO2020052092A1/en
Publication of CN109165018A publication Critical patent/CN109165018A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/40Transformation of program code
    • G06F8/41Compilation
    • G06F8/44Encoding
    • G06F8/447Target code generation
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/14Error detection or correction of the data by redundancy in operation
    • G06F11/1402Saving, restoring, recovering or retrying
    • G06F11/1446Point-in-time backing up or restoration of persistent data
    • G06F11/1458Management of the backup or restore process
    • G06F11/1464Management of the backup or restore process for networked environments

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Quality & Reliability (AREA)
  • Software Systems (AREA)
  • Information Transfer Between Computers (AREA)
  • Storage Device Security (AREA)

Abstract

The present invention relates to code method for automatically releasing, device, computer equipment and storage medium, this method includes setting double netcard and security strategy;Obtain code to be released;It treats release code to be compiled, forms object code;Backup outer net issues environment, and stores in outer net publication environment to database;Object code is copied in outer net publication environment, outer net publication environment is restarted.The present invention is by being arranged the security strategy when double netcard that can be connect with outer net and Intranet and access, code and outer net publication environment to be released is obtained automatically to realize, and improve the safety of code publication, in issuing process, the outer net publication environment of backup each time avoids the occurrence of the vacant phase if can be used for the emergency that object code issues unsuccessful situation occur, automatic publication object code, may make the publication of object code more efficient.

Description

Code method for automatically releasing, device, computer equipment and storage medium
Technical field
The present invention relates to code dissemination methods, more specifically reference code method for automatically releasing, device, computer equipment And storage medium.
Background technique
Code is exactly the source file that the language supported of programmer's developing instrument writes out, and is one group by character, symbol Or signal element indicates the specific rule system of information with discrete form.The principle of Code Design includes uniquely determining property, mark Standardization and versatility, expandability and stability, convenient for identifying and remember, make every effort to short and small and with uniform format and be easily modified Deng.
Code development generally focuses on confidentiality, and the Intranet that can only be specified in the process of development is accessible, and outer net can not visit It asks, for the issuing process of code, usually artificial publication after specified position replicating code, then is copied to outer net, is formed Object code, but there are inefficiency for this mode, and have subtle a variation or problem after code development, then need Again artificial publication process is developed and walk again, during this, user is not available the code of publication, causes to occur vacant Phase, user experience are weaker.
Therefore, it is necessary to design a kind of new method, efficiently issuing and avoid the occurrence of the vacant phase for object code is realized.
Summary of the invention
It is an object of the invention to overcome the deficiencies of existing technologies, code method for automatically releasing, device, computer are provided and set Standby and storage medium.
To achieve the above object, the invention adopts the following technical scheme: code method for automatically releasing, comprising:
Double netcard and security strategy are set;
Obtain code to be released;
It treats release code to be compiled, forms object code;
Backup outer net issues environment, and stores in outer net publication environment to database;
Object code is copied in outer net publication environment, outer net publication environment is restarted.
Its further technical solution are as follows: the setting double netcard and security strategy, comprising:
Double netcard is set and connects Intranet and outer net;
The security strategy of Intranet and extranet access is set.
Its further technical solution are as follows: the security strategy of the setting Intranet and extranet access, comprising:
The port IP of Intranet and extranet access is set;
The permission of Intranet and extranet access is set.
Its further technical solution are as follows: after the setting Intranet and the permission of extranet access, further includes:
The IP address of Intranet and extranet access is set.
Its further technical solution are as follows: it is described that object code is copied in outer net publication environment, restart outer net publication ring After border, further includes:
Judge whether object code publication succeeds;
If it is not, being then rolled back to the outer net publication environment of last storage.
Its further technical solution are as follows: the outer net publication environment for being rolled back to last storage, comprising:
The outer net for obtaining last storage from database issues environment;
The outer net publication environment of last time storage is replaced into current outer net and issues environment;
The outer net that object code is copied to last storage is issued into environment, and restarts the outer net publication ring of last storage Border.
The present invention also provides the automatic distributing devices of code, comprising:
Setting unit, for double netcard and security strategy to be arranged;
Code obtaining unit, for obtaining code to be released;
Compilation unit is compiled for treating release code, forms object code;
Backup units for backing up outer net publication environment, and store in outer net publication environment to database;
Copied cells restart outer net publication environment for object code to be copied in outer net publication environment.
Its further technical solution are as follows: the setting unit includes:
Network card setup subelement, for double netcard connection Intranet and outer net to be arranged;
Strategy setting subelement, for the security strategy of Intranet and extranet access to be arranged.
The present invention also provides a kind of computer equipments, which is characterized in that the computer equipment includes memory and place Device is managed, is stored with computer program on the memory, the processor realizes above-mentioned generation when executing the computer program Code method for automatically releasing.
The present invention also provides a kind of storage medium, the storage medium is stored with computer program, the computer journey Sequence can realize above-mentioned code method for automatically releasing when being executed by processor.
Compared with the prior art, the invention has the advantages that: the present invention can be connect double by setting with outer net and Intranet Security strategy when network interface card and access obtains code and outer net publication environment to be released to realize automatically, and improves code The safety of publication backs up outer net publication environment each time in issuing process, if can be used for object code publication occur not The emergency of successful instance avoids the occurrence of the vacant phase, issues object code automatically, may make the publication of object code more efficient.
The invention will be further described in the following with reference to the drawings and specific embodiments.
Detailed description of the invention
Technical solution in order to illustrate the embodiments of the present invention more clearly, below will be to needed in embodiment description Attached drawing is briefly described, it should be apparent that, drawings in the following description are some embodiments of the invention, general for this field For logical technical staff, without creative efforts, it is also possible to obtain other drawings based on these drawings.
Fig. 1 is the application scenarios schematic diagram of code method for automatically releasing provided in an embodiment of the present invention;
Fig. 2 is the flow diagram of code method for automatically releasing provided in an embodiment of the present invention;
Fig. 3 is the sub-process schematic diagram of code method for automatically releasing provided in an embodiment of the present invention;
Fig. 4 is the sub-process schematic diagram of code method for automatically releasing provided in an embodiment of the present invention;
Fig. 5 be another embodiment of the present invention provides code method for automatically releasing flow diagram;
Fig. 6 be another embodiment of the present invention provides code method for automatically releasing sub-process schematic diagram;
Fig. 7 is the schematic block diagram of the automatic distributing device of code provided in an embodiment of the present invention;
Fig. 8 is the schematic block diagram of the setting unit of the automatic distributing device of code provided in an embodiment of the present invention;
Fig. 9 is the schematic block diagram of the strategy setting subelement of the automatic distributing device of code provided in an embodiment of the present invention;
Figure 10 be another embodiment of the present invention provides the automatic distributing device of code schematic block diagram;
Figure 11 be another embodiment of the present invention provides the automatic distributing device of code rollback unit schematic block diagram;
Figure 12 is the schematic block diagram of computer equipment provided in an embodiment of the present invention.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete Site preparation description, it is clear that described embodiments are some of the embodiments of the present invention, instead of all the embodiments.Based on this hair Embodiment in bright, every other implementation obtained by those of ordinary skill in the art without making creative efforts Example, shall fall within the protection scope of the present invention.
It should be appreciated that ought use in this specification and in the appended claims, term " includes " and "comprising" instruction Described feature, entirety, step, operation, the presence of element and/or component, but one or more of the other feature, whole is not precluded Body, step, operation, the presence or addition of element, component and/or its set.
It is also understood that mesh of the term used in this description of the invention merely for the sake of description specific embodiment And be not intended to limit the present invention.As description of the invention and it is used in the attached claims, unless on Other situations are hereafter clearly indicated, otherwise " one " of singular, "one" and "the" are intended to include plural form.
It will be further appreciated that the term "and/or" used in description of the invention and the appended claims is Refer to any combination and all possible combinations of one or more of associated item listed, and including these combinations.
Fig. 1 and Fig. 2 are please referred to, Fig. 1 is that the application scenarios of code method for automatically releasing provided in an embodiment of the present invention are illustrated Figure.Fig. 2 is the schematic flow chart of code method for automatically releasing provided in an embodiment of the present invention.The code method for automatically releasing is answered For existing in server 20 in the form of distribution platform;The server 20 can carry out data interaction with user terminal 10, In, the user of user terminal 10 is usually the user of application program, code can be distributed to user's end by server 20 End 10 learns whether code publication succeeds from user terminal 10, with the adjustment issued.
Fig. 2 is the flow diagram of code method for automatically releasing provided in an embodiment of the present invention.As shown in Fig. 2, this method Include the following steps S110 to S150.
S110, setting double netcard and security strategy.
In the present embodiment, double netcard refers to two network interface cards, and for accessing Intranet, a network interface card is used for one of network interface card Access outer net;Security strategy refers to access Intranet and safety measure when outer net, to guarantee high security that code is issued automatically.
In one embodiment, as shown in figure 3, above-mentioned step S110 may include step S111~S112.
S111, setting double netcard connect Intranet and outer net.
In the present embodiment, by server 20 being arranged the network interface card of a connection outer net and the net of a connection Intranet Card, so that server 20 can obtain code and outer net to be released the publication environment of Intranet automatically, to be automatically performed code hair Cloth process improves code efficiency for issuing.
Specifically, the IP address of limitation double netcard access is IP address of internal network and outer net IP address, and server can be realized The purpose of 20 connection Intranets and outer net.
S112, the security strategy that Intranet and extranet access are set.
When the connection Intranet of server 20 and outer net is arranged, it is easy to appear the problem of divulging a secret, it is not high so as to cause safety, Therefore, it is necessary to take a series of security strategies to enhance the safety of code issuing process.
In one embodiment, as shown in figure 4, above-mentioned step S112 may include step S1121~S1122.
S1121, the port IP that Intranet and extranet access are set.
In the present embodiment, IP address corresponding to the port IP that double netcard is accessed specifically in Limited service device is only One property, that is, the IP address of access Intranet, the end IP of another network interface card are fixed in the port IP of one of network interface card in double netcard The IP address of the fixed access outer net of mouth, to improve the safety of access, is issued from the restriction on physical port to improve code Safety.
S1122, the permission that Intranet and extranet access are set.
In the present embodiment, it is limited for the permission of remote access, by the way that the permission of Intranet and extranet access is arranged, only People can also be arranged in other embodiments in the access that Intranet and outer net can be just carried out in the case where user and password match The access authority identification methods such as face identification, to improve the safety of access.
In one embodiment, after above-mentioned step S1122 further include:
S1122, the IP address that Intranet and extranet access are set.
The server is arrived in addition to specified IP address is accessible, this clothes cannot be all accessed in the equipment of other IP address Business device, to further increase the safety of access.
S120, code to be released is obtained.
In the present embodiment, server 20 obtains code to be released from Intranet using the port network interface card IP connecting with Intranet.
In the present embodiment, which formed in the environment of Intranet, and the arrangement of production environment is done by outer net To be issued.
S130, it treats release code and is compiled, form object code.
In the present embodiment, compiling refers to that code translation to be released becomes the binary instruction that computer can be performed, target Code refers to the code that computer can identify.
In one embodiment, above-mentioned step S130 may include step S131~S132.
S131, it treats release code and is pre-processed.
In the present embodiment, if code to be released is C code, the pretreatment refer to treating release code carry out it is macro fixed Justice expansion, header file expansion, conditional compilation, do not check grammer;At gcc-E [source file]-o [preprocessed file] order Reason;If code to be released is Java code, which refers to analyzing and being input to symbol table and note processing.
S132, file format conversion is carried out according to pre-processed results, to obtain object code.
In the present embodiment, if code to be released is C code, inspection grammer is carried out, pretreated file is compiled Assembling file is generated, it is specific using order gcc-S [source file]-o [assembling file], in addition it is also necessary to will be raw by assembling file It is specific using order gcc-s [source file]-o [file destination] at object code (2 binary file);If code to be released is Java code then carries out semantic analysis and generates class file, and the class file of generation consists of the following parts: structure letter Breath, the information of quantity and size including class file format version number and each section;Metadata corresponds in Java source code The information of statement and constant.Claim information, domain and method claim information comprising class/succession superclass/realization interface and often Measure pond;Method information corresponds to sentence and the corresponding information of expression formula in Java source code.Comprising bytecode, exception handler table, ask It is worth stack and local variable area's size, the class record of evaluation stack, debugging symbolic information.
S140, backup outer net issue environment, and store in outer net publication environment to database.
In the present embodiment, it when each release code, requires that outer net publication environment is backed up and stored, with If issuing convenient for current outer net, the code publication under environment is unsuccessful, and the outer net that can be stored with the direct copying last time issues ring Border is prepared against urgent need.
S150, object code is copied in outer net publication environment, restarts outer net publication environment.
In the present embodiment, object code is copied to outer net publication environment, the publication of code can be realized, restart It uses, it is easy to operate and conveniently.
In the present embodiment, restarting outer net publication environment is to send out object code in the case where outer net issues environment Cloth.
Fig. 5 be another embodiment of the present invention provides a kind of code method for automatically releasing flow diagram.Such as Fig. 5 institute Show, the code method for automatically releasing of the present embodiment includes step S210-S270.Wherein step S210-S250 and above-described embodiment In step S110-S150 it is similar, details are not described herein.The following detailed description of in the present embodiment increase step S260- S270。
S260, judge whether object code publication succeeds.
In the present embodiment, if user terminal 10 can be used the object code of the publication of server 20 generated using journey Sequence then shows that the object code is issued successfully, if the object code of the unusable server 20 of user terminal 10 publication is generated Application program, then show the object code publication it is unsuccessful.
S270, if it is not, being then rolled back to the outer net publication environment of last storage.
If so, into end step.
In the present embodiment, it is only necessary to be rolled back to the external of last storage and issue environment, so that object code is upper one It is issued in the external publication environment of secondary storage, is not in that object code issues failure in the case where current outer net issues environment And the vacant phase for causing user to occur not being available.
In one embodiment, as shown in fig. 6, above-mentioned step S270 may include step S271~S273.
S271, environment is issued from the outer net that database obtains last storage;
S272, the outer net publication environment of last time storage is replaced to current outer net publication environment;
S273, the outer net that object code is copied to last storage is issued into environment, and restarts the outer net of last storage Issue environment.
It only needs the outer net publication environment of last time storage replacing current outer net and issues environment, because the last time deposits Object code publication under the outer net publication environment of storage is success, therefore, the publication of replaced object code be also successfully, can For users to use.
Above-mentioned code method for automatically releasing, by when being arranged the double netcard that can connect with outer net and Intranet and access Security strategy obtains code and outer net publication environment to be released to realize automatically, and improves the safety of code publication, is sending out During cloth, the outer net publication environment backed up each time is kept away if can be used for the emergency that object code issues unsuccessful situation occur Exempt from the vacant phase occur, issue object code automatically, may make the publication of object code more efficient.
Fig. 7 is a kind of schematic block diagram of the automatic distributing device 200 of code provided in an embodiment of the present invention.As shown in fig. 7, Corresponding to the above code method for automatically releasing, the present invention also provides a kind of automatic distributing devices 200 of code.The code is issued automatically Device 200 includes the unit for executing above-mentioned code method for automatically releasing, which can be configured in server 20.Tool Body, referring to Fig. 5, the automatic distributing device 200 of the code includes:
Setting unit 201, for double netcard and security strategy to be arranged.
Code obtaining unit 202, for obtaining code to be released.
Compilation unit 203 is compiled for treating release code, forms object code.
Backup units 204 for backing up outer net publication environment, and store in outer net publication environment to database.
Copied cells 205 restart outer net publication environment for object code to be copied in outer net publication environment.
In one embodiment, as shown in figure 8, the setting unit 201 includes:
Network card setup subelement 2011, for double netcard connection Intranet and outer net to be arranged.
Strategy setting subelement 2022, for the security strategy of Intranet and extranet access to be arranged.
In one embodiment, as shown in figure 9, the strategy setting subelement 2022 includes:
Port setup module 20221, for the port IP of Intranet and extranet access to be arranged.
Priority assignation module 2022, for the permission of Intranet and extranet access to be arranged.
In one embodiment, the strategy setting subelement 2022 further include:
Address setup module, for the IP address of Intranet and extranet access to be arranged.
Figure 10 be another embodiment of the present invention provides a kind of automatic distributing device 200 of code schematic block diagram.Such as figure Shown in 10, the automatic distributing device 200 of the code of the present embodiment be increase on the basis of above-described embodiment judging unit 206 and Rollback unit 207.
Judging unit 206, for judging whether object code publication succeeds.
Rollback unit 207, for if it is not, the outer net for being then rolled back to last storage issues environment.
In one embodiment, as shown in figure 11, the rollback unit 207 includes:
Environment obtains subelement 2071, and the outer net for obtaining last storage from database issues environment.
Subelement 2072 is replaced, issues environment for the outer net publication environment of last time storage to be replaced current outer net.
Subelement 2073 is restarted in duplication, and the outer net for object code to be copied to last storage issues environment, is laid equal stress on Open the outer net publication environment of last storage.
It should be noted that it is apparent to those skilled in the art that, the above-mentioned automatic distributing device of code 200 and each unit specific implementation process, can with reference to the corresponding description in preceding method embodiment, for convenience of description and Succinctly, details are not described herein.
The above-mentioned automatic distributing device 200 of code can be implemented as a kind of form of computer program, which can To be run in computer equipment as shown in figure 12.
Figure 12 is please referred to, Figure 12 is a kind of schematic block diagram of computer equipment provided by the embodiments of the present application.The calculating Machine equipment 500 is server.
Refering to fig. 12, which includes processor 502, memory and the net connected by system bus 501 Network interface 505, wherein memory may include non-volatile memory medium 503 and built-in storage 504.
The non-volatile memory medium 503 can storage program area 5031 and computer program 5032.The computer program 5032 include program instruction, which is performed, and processor 502 may make to execute a kind of code method for automatically releasing.
The processor 502 is for providing calculating and control ability, to support the operation of entire computer equipment 500.
The built-in storage 504 provides environment for the operation of the computer program 5032 in non-volatile memory medium 503, should When computer program 5032 is executed by processor 502, processor 502 may make to execute a kind of code method for automatically releasing.
The network interface 505 is used to carry out network communication with other equipment.It will be understood by those skilled in the art that in Figure 12 The structure shown, only the block diagram of part-structure relevant to application scheme, does not constitute and is applied to application scheme The restriction of computer equipment 500 thereon, specific computer equipment 500 may include more more or fewer than as shown in the figure Component perhaps combines certain components or with different component layouts.
Wherein, the processor 502 is for running computer program 5032 stored in memory, to realize following step It is rapid:
Double netcard and security strategy are set;
Obtain code to be released;
It treats release code to be compiled, forms object code;
Backup outer net issues environment, and stores in outer net publication environment to database;
Object code is copied in outer net publication environment, outer net publication environment is restarted.
In one embodiment, for processor 502 when realizing the setting double netcard and security strategy step, specific implementation is such as Lower step:
Double netcard is set and connects Intranet and outer net;
The security strategy of Intranet and extranet access is set.
In one embodiment, processor 502 realize it is described setting Intranet and extranet access security strategy step after, Also realize following steps:
The IP address of Intranet and extranet access is set.
In one embodiment, processor 502 is when realizing the security strategy step of the setting Intranet and extranet access, tool Body realizes following steps:
The port IP of Intranet and extranet access is set;
The permission of Intranet and extranet access is set.
In one embodiment, processor 502 realize it is described object code is copied in outer net publication environment, restart outer After net publication environment step, following steps are also realized:
Judge whether object code publication succeeds;
If it is not, being then rolled back to the outer net publication environment of last storage.
In one embodiment, when processor 502 is rolled back to the upper outer net once stored described in the realization and issues environment step, It is implemented as follows step:
The outer net for obtaining last storage from database issues environment;
The outer net publication environment of last time storage is replaced into current outer net and issues environment;
The outer net that object code is copied to last storage is issued into environment, and restarts the outer net publication ring of last storage Border.
It should be appreciated that in the embodiment of the present application, processor 502 can be central processing unit (Central Processing Unit, CPU), which can also be other general processors, digital signal processor (Digital Signal Processor, DSP), specific integrated circuit (Application Specific Integrated Circuit, ASIC), ready-made programmable gate array (Field-Programmable Gate Array, FPGA) or other programmable logic Device, discrete gate or transistor logic, discrete hardware components etc..Wherein, general processor can be microprocessor or Person's processor is also possible to any conventional processor etc..
Those of ordinary skill in the art will appreciate that be realize above-described embodiment method in all or part of the process, It is that relevant hardware can be instructed to complete by computer program.The computer program includes program instruction, computer journey Sequence can be stored in a storage medium, which is computer readable storage medium.The program instruction is by the department of computer science At least one processor in system executes, to realize the process step of the embodiment of the above method.
Therefore, the present invention also provides a kind of storage mediums.The storage medium can be computer readable storage medium.This is deposited Storage media is stored with computer program, and processor is made to execute following steps when wherein the computer program is executed by processor:
Double netcard and security strategy are set;
Obtain code to be released;
It treats release code to be compiled, forms object code;
Backup outer net issues environment, and stores in outer net publication environment to database;
Object code is copied in outer net publication environment, outer net publication environment is restarted.
In one embodiment, the processor realizes the setting double netcard and safety executing the computer program When strategy step, it is implemented as follows step:
Double netcard is set and connects Intranet and outer net;
The security strategy of Intranet and extranet access is set.
In one embodiment, the processor realizes the setting Intranet and outer net visit executing the computer program After the security strategy step asked, following steps are also realized:
The IP address of Intranet and extranet access is set.
In one embodiment, the processor realizes the setting Intranet and outer net visit executing the computer program When the security strategy step asked, it is implemented as follows step:
The port IP of Intranet and extranet access is set;
The permission of Intranet and extranet access is set.
In one embodiment, the processor is realized and described is copied to object code executing the computer program Outer net is issued in environment, after restarting outer net publication environment step, also realizes following steps:
Judge whether object code publication succeeds;
If it is not, being then rolled back to the outer net publication environment of last storage.
In one embodiment, the processor is realized and described is rolled back to upper primary storage executing the computer program Outer net issue environment step when, be implemented as follows step:
The outer net for obtaining last storage from database issues environment;
The outer net publication environment of last time storage is replaced into current outer net and issues environment;
The outer net that object code is copied to last storage is issued into environment, and restarts the outer net publication ring of last storage Border.
The storage medium can be USB flash disk, mobile hard disk, read-only memory (Read-Only Memory, ROM), magnetic disk Or the various computer readable storage mediums that can store program code such as CD.
Those of ordinary skill in the art may be aware that list described in conjunction with the examples disclosed in the embodiments of the present disclosure Member and algorithm steps, can be realized with electronic hardware, computer software, or a combination of the two, in order to clearly demonstrate hardware With the interchangeability of software, each exemplary composition and step are generally described according to function in the above description.This A little functions are implemented in hardware or software actually, the specific application and design constraint depending on technical solution.Specially Industry technical staff can use different methods to achieve the described function each specific application, but this realization is not It is considered as beyond the scope of this invention.
In several embodiments provided by the present invention, it should be understood that disclosed device and method can pass through it Its mode is realized.For example, the apparatus embodiments described above are merely exemplary.For example, the division of each unit, only Only a kind of logical function partition, there may be another division manner in actual implementation.Such as multiple units or components can be tied Another system is closed or is desirably integrated into, or some features can be ignored or not executed.
The steps in the embodiment of the present invention can be sequentially adjusted, merged and deleted according to actual needs.This hair Unit in bright embodiment device can be combined, divided and deleted according to actual needs.In addition, in each implementation of the present invention Each functional unit in example can integrate in one processing unit, is also possible to each unit and physically exists alone, can also be with It is that two or more units are integrated in one unit.
If the integrated unit is realized in the form of SFU software functional unit and when sold or used as an independent product, It can store in one storage medium.Based on this understanding, technical solution of the present invention is substantially in other words to existing skill The all or part of part or the technical solution that art contributes can be embodied in the form of software products, the meter Calculation machine software product is stored in a storage medium, including some instructions are used so that a computer equipment (can be a People's computer, terminal or network equipment etc.) it performs all or part of the steps of the method described in the various embodiments of the present invention.
The above description is merely a specific embodiment, but scope of protection of the present invention is not limited thereto, any Those familiar with the art in the technical scope disclosed by the present invention, can readily occur in various equivalent modifications or replace It changes, these modifications or substitutions should be covered by the protection scope of the present invention.Therefore, protection scope of the present invention should be with right It is required that protection scope subject to.

Claims (10)

1. code method for automatically releasing characterized by comprising
Double netcard and security strategy are set;
Obtain code to be released;
It treats release code to be compiled, forms object code;
Backup outer net issues environment, and stores in outer net publication environment to database;
Object code is copied in outer net publication environment, outer net publication environment is restarted.
2. code method for automatically releasing according to claim 1, which is characterized in that the setting double netcard and safe plan Slightly, comprising:
Double netcard is set and connects Intranet and outer net;
The security strategy of Intranet and extranet access is set.
3. code method for automatically releasing according to claim 2, which is characterized in that the setting Intranet and extranet access Security strategy, comprising:
The port IP of Intranet and extranet access is set;
The permission of Intranet and extranet access is set.
4. code method for automatically releasing according to claim 3, which is characterized in that the setting Intranet and extranet access After permission, further includes:
The IP address of Intranet and extranet access is set.
5. code method for automatically releasing according to any one of claims 1 to 4, which is characterized in that described by object code Be copied to outer net publication environment in, restart outer net publication environment after, further includes:
Judge whether object code publication succeeds;
If it is not, being then rolled back to the outer net publication environment of last storage.
6. code method for automatically releasing according to claim 5, which is characterized in that described to be rolled back to the outer of last storage Net publication environment, comprising:
The outer net for obtaining last storage from database issues environment;
The outer net publication environment of last time storage is replaced into current outer net and issues environment;
The outer net that object code is copied to last storage is issued into environment, and restarts the outer net publication environment of last storage.
7. the automatic distributing device of code characterized by comprising
Setting unit, for double netcard and security strategy to be arranged;
Code obtaining unit, for obtaining code to be released;
Compilation unit is compiled for treating release code, forms object code;
Backup units for backing up outer net publication environment, and store in outer net publication environment to database;
Copied cells restart outer net publication environment for object code to be copied in outer net publication environment.
8. the automatic distributing device of code according to claim 7, which is characterized in that the setting unit includes:
Network card setup subelement, for double netcard connection Intranet and outer net to be arranged;
Strategy setting subelement, for the security strategy of Intranet and extranet access to be arranged.
9. a kind of computer equipment, which is characterized in that the computer equipment includes memory and processor, on the memory It is stored with computer program, the processor is realized as described in any one of claims 1 to 6 when executing the computer program Code method for automatically releasing.
10. a kind of storage medium, which is characterized in that the storage medium is stored with computer program, the computer program quilt Processor can be realized when executing such as code method for automatically releasing described in any one of claims 1 to 6.
CN201811048245.6A 2018-09-10 2018-09-10 Code method for automatically releasing, device, computer equipment and storage medium Pending CN109165018A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201811048245.6A CN109165018A (en) 2018-09-10 2018-09-10 Code method for automatically releasing, device, computer equipment and storage medium
PCT/CN2018/117913 WO2020052092A1 (en) 2018-09-10 2018-11-28 Method and apparatus for automatically releasing code, computer device, and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811048245.6A CN109165018A (en) 2018-09-10 2018-09-10 Code method for automatically releasing, device, computer equipment and storage medium

Publications (1)

Publication Number Publication Date
CN109165018A true CN109165018A (en) 2019-01-08

Family

ID=64894463

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811048245.6A Pending CN109165018A (en) 2018-09-10 2018-09-10 Code method for automatically releasing, device, computer equipment and storage medium

Country Status (2)

Country Link
CN (1) CN109165018A (en)
WO (1) WO2020052092A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111597196A (en) * 2020-05-09 2020-08-28 北京百度网讯科技有限公司 A data processing method, device and electronic device

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6055236A (en) * 1998-03-05 2000-04-25 3Com Corporation Method and system for locating network services with distributed network address translation
CN202364256U (en) * 2011-11-25 2012-08-01 四川能信科技有限公司 Network information issuing system and server
CN106095501A (en) * 2016-06-12 2016-11-09 华为软件技术有限公司 A kind of application section arranging method and device
CN107038352A (en) * 2016-02-03 2017-08-11 上海思立微电子科技有限公司 Intranet security access method, device and terminal
CN107172075A (en) * 2017-06-26 2017-09-15 努比亚技术有限公司 Communication means, system and readable storage medium storing program for executing based on Network Isolation

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6378126B2 (en) * 1998-09-29 2002-04-23 International Business Machines Corporation Compilation of embedded language statements in a source code program
US20070283336A1 (en) * 2006-06-01 2007-12-06 Michael Karl Gschwind System and method for just-in-time compilation in a heterogeneous processing environment
CN103677765B (en) * 2012-08-31 2018-07-06 腾讯科技(深圳)有限公司 Automatically releasing versions method, apparatus and storage medium
CN105373401B (en) * 2015-10-27 2018-09-07 上海找钢网信息科技股份有限公司 Software package method for automatically releasing and system

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6055236A (en) * 1998-03-05 2000-04-25 3Com Corporation Method and system for locating network services with distributed network address translation
CN202364256U (en) * 2011-11-25 2012-08-01 四川能信科技有限公司 Network information issuing system and server
CN107038352A (en) * 2016-02-03 2017-08-11 上海思立微电子科技有限公司 Intranet security access method, device and terminal
CN106095501A (en) * 2016-06-12 2016-11-09 华为软件技术有限公司 A kind of application section arranging method and device
CN107172075A (en) * 2017-06-26 2017-09-15 努比亚技术有限公司 Communication means, system and readable storage medium storing program for executing based on Network Isolation

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
佚名: "双网卡同时上网如何设置", 《HTTPS://WWW.JB51.NET/DIANNAOJICHU/161179.HTML》 *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111597196A (en) * 2020-05-09 2020-08-28 北京百度网讯科技有限公司 A data processing method, device and electronic device
CN111597196B (en) * 2020-05-09 2024-02-13 北京百度网讯科技有限公司 Data processing method and device and electronic equipment

Also Published As

Publication number Publication date
WO2020052092A1 (en) 2020-03-19

Similar Documents

Publication Publication Date Title
Wu et al. Combinatorial testing of restful apis
CN109582301B (en) Service processing method, device, equipment and medium based on task scheduling system
Störrle Towards clone detection in UML domain models
CN107122364B (en) Data manipulation method and data management server
US9971595B1 (en) Techniques for automated database deployment
CN103123605B (en) A kind of Android platform automatic integration test method and device
US20160378647A1 (en) Development supporting system
Rose et al. A comparison of model migration tools
CN105373401A (en) Method and system for automatically releasing software package
CN107147711A (en) Application service update method and device
Kim et al. Dual execution for on the fly fine grained execution comparison
Porter et al. Skoll: A process and infrastructure for distributed continuous quality assurance
CN102479092A (en) Method and device for updating patch of software system
Michelon et al. Comparison-based feature location in ArgoUML variants
CN113051178A (en) Test data construction method, device, equipment and medium
CN107239292A (en) It is a kind of to automate the method and apparatus for building software version
Kim et al. Writing, supporting, and evaluating tripwire: A publically available security tool
CN112948480B (en) Data extraction method, device, electronic equipment and storage medium
Osaiweran et al. Evaluating the effect of a lightweight formal technique in industry
US9946534B1 (en) Techniques for automated database deployment
CN105678118B (en) A kind of software version generation method and device containing digital certificate
Rahman Anti-patterns in infrastructure as code
CN109165018A (en) Code method for automatically releasing, device, computer equipment and storage medium
Alshahwan et al. Some challenges for software testing research (invited talk paper)
Lipka et al. A method for semi-automated generation of test scenarios based on use cases

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20190108

RJ01 Rejection of invention patent application after publication