CN110502238A - A kind of method and device of front and back end joint debugging - Google Patents

A kind of method and device of front and back end joint debugging Download PDF

Info

Publication number
CN110502238A
CN110502238A CN201910689951.7A CN201910689951A CN110502238A CN 110502238 A CN110502238 A CN 110502238A CN 201910689951 A CN201910689951 A CN 201910689951A CN 110502238 A CN110502238 A CN 110502238A
Authority
CN
China
Prior art keywords
static resource
access path
access
long
machine
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
CN201910689951.7A
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.)
Beike Technology Co Ltd
Original Assignee
Beike 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 Beike Technology Co Ltd filed Critical Beike Technology Co Ltd
Priority to CN201910689951.7A priority Critical patent/CN110502238A/en
Publication of CN110502238A publication Critical patent/CN110502238A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/40Transformation of program code
    • G06F8/41Compilation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/448Execution paradigms, e.g. implementations of programming paradigms
    • G06F9/4482Procedural

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Stored Programmes (AREA)

Abstract

The embodiment of the invention provides a kind of method and device of front and back end joint debugging, long-range machine of developing is by the real-time compiled static resource in the first access path acquisition front end, in the static resource storage to long-range exploitation machine that will acquire.Rear end obtains static resource by the long-range exploitation machine of the second access path access.In this process, long-range exploitation machine obtains front end static resource compiled in real time by the first access path, long-range exploitation machine is not needed to be compiled the resource obtained from front end, save the time that long-range exploitation machine obtains static resource, rear end also can obtain static resource from long-range exploitation machine in time by the second access path simultaneously, and real-time is good.On the other hand, the case where remotely for exploitation machine as normally opened server-side, stability is preferable, is not in service disruption.Therefore, the static resource for obtaining compiling in real time by remotely developing machine ensure that rear end obtains the real-time and stability of static resource.

Description

A kind of method and device of front and back end joint debugging
Technical field
The present invention relates to program development techniques fields, more particularly, to a kind of method and device of front and back end joint debugging.
Background technique
Program development be generally divided into front-end and back-end individually develop, front and back end joint debugging, test and online several processes.Front and back End joint debugging refers to that the static resource of front end is called in rear end, and the Processing Interface of rear end is called in front end.Existing front and back end joint debugging master It to include two kinds, one is one local services of frontal startup, the static resource of front end is deployed in this local service, after These static resources are accessed by accessing the local service of front end in end, realize real-time joint debugging, but since local service is stablized Property it is poor, often there is service the case where cutting off, joint debugging is interrupted and taken place frequently, and joint debugging efficiency is seriously affected.Another kind is front end exploitation Static resource is bundled on a stable remote server after the completion, static state is requested by access remote server in rear end Resource, this mode is although more stable, but with the increase of project, and the time that front end is packaged static resource is increasingly It is long, it often changes code 3 seconds, is packaged but five minutes, real-time is poor.
In actual application, inventor has found that the method for existing front and back end joint debugging or stability are poor, causes Joint debugging process take place frequently interruption or real-time it is poor, cause rear end that can not obtain newest static resource in time.
Summary of the invention
The embodiment of the present invention provides a kind of method and device of front and back end joint debugging, to solve front and back end in the prior art The method or stability of joint debugging are poor, cause joint debugging process take place frequently interruption or real-time it is poor, cause rear end timely The problem of obtaining newest static resource.
Against the above technical problems, in a first aspect, the embodiment provides a kind of method of front and back end joint debugging, packet It includes:
Long-range exploitation machine obtains the first access path that access compiles the static resource of generation through front end in real time, according to described First access path obtains the static resource;
The long-range exploitation machine stores the static resource, and configures and access the static money by the long-range exploitation machine Second access path in source, so that rear end obtains the static resource according to second access path.
Optionally, first access path for obtaining access and compiling the static resource of generation in real time through front end, according to institute It states the first access path and obtains the static resource, comprising:
Access is being obtained after front end compiles the first access path of the static resource of generation in real time, every preset duration root The request for accessing the static resource is sent to the front end according to first access path;
If accessing the static resource success according to first access path, the static resource is obtained;
If accessing the static resource according to first access path to fail, prompt information is issued.
Optionally, if described access the static resource failure according to first access path, prompt information is issued, Include:
If accessing the static resource according to first access path to fail, and failure cause is first access road Diameter mistake then reacquires first access path, after getting the first new access path, according to the first new access Path obtains the static resource.
Optionally, the storage static resource, and configure and the static resource is accessed by the long-range exploitation machine The second access path, comprising:
It judges whether there is and stores the identical target of the filename of the static resource file in filename and the front end Otherwise file, is created and is stored in filename and the front end if so, the static resource is written in the file destination The identical file of filename of the static resource file, as the file destination, in the file destination described in write-in Static resource;
The access path of file destination described in configuration access accesses the static resource as by the long-range exploitation machine The second access path.
Optionally, the storage static resource, and configure and the static resource is accessed by the long-range exploitation machine The second access path after, further includes:
The rear end is sent by second access path, so that the rear end on the long-range exploitation machine by running Node service, the static resource is obtained according to second access path.
Optionally, further includes:
After the request for receiving the access static resource that the rear end is sent according to second access path, if There are mistakes for second access path, then the prompt information to malfunction to rear end backward reference path.
Optionally, the static resource includes one in script file, text file, video, audio and picture file Or it is multinomial.
Second aspect, the embodiment provides a kind of devices of front and back end joint debugging, comprising:
Module is obtained, for being visited after the first access path for getting access front end static resource according to described first Diameter of asking the way obtains the static resource;
Configuration module for storing the static resource, and configures and accesses the static money by the long-range exploitation machine Second access path in source, so that rear end obtains the static resource according to second access path.
The third aspect the embodiment provides a kind of electronic equipment, including memory, processor and is stored in On reservoir and the computer program that can run on a processor, the processor realize any of the above item institute when executing described program The step of method for the front and back end joint debugging stated.
Fourth aspect, the embodiment provides a kind of non-transient computer readable storage mediums, are stored thereon with Computer program realizes the step of the method for front and back end joint debugging described in any of the above item when the computer program is executed by processor Suddenly.
The embodiment provides a kind of method and device of front and back end joint debugging, long-range machine of developing passes through the first access Path obtains front end static resource compiled in real time, in the static resource storage to long-range exploitation machine that will acquire.Rear end passes through The long-range exploitation machine of second access path access obtains static resource.In this process, remotely exploitation machine passes through the first access path Front end static resource compiled in real time is obtained, long-range exploitation machine is not needed and the resource obtained from front end is compiled, is saved Long-range exploitation machine obtains the time of static resource, while rear end can also be obtained from long-range exploitation machine in time by the second access path Static resource is taken, real-time is good.On the other hand, remotely for exploitation machine as normally opened server-side, stability is preferable, is not in clothes The case where business is interrupted.Therefore, the static resource for obtaining compiling in real time by remotely developing machine ensure that rear end obtains static resource Real-time and stability.
Detailed description of the invention
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below There is attached drawing needed in technical description to do one simply to introduce, it should be apparent that, the accompanying drawings in the following description is this hair Bright some embodiments for those of ordinary skill in the art without creative efforts, can be with root Other attached drawings are obtained according to these attached drawings.
Fig. 1 is a kind of flow diagram of the method for front and back end joint debugging provided by one embodiment of the present invention;
Fig. 2 is a kind of structural block diagram for the device that another embodiment of the present invention provides front and back end joint debugging;
Fig. 3 is the structural block diagram for the electronic equipment that another embodiment of the present invention provides.
Specific embodiment
In order to make the object, technical scheme and advantages of the embodiment of the invention clearer, below in conjunction with the embodiment of the present invention In attached drawing, technical scheme in the embodiment of the invention is clearly and completely described, it is clear that described embodiment is A part of the embodiment of the present invention, instead of all the embodiments.Based on the embodiments of the present invention, those of ordinary skill in the art Every other embodiment obtained without making creative work, shall fall within the protection scope of the present invention.
In the prior art, if rear end obtains static resource by remotely exploitation machine, rear end obtains the process of static resource Are as follows: the resource without compiling write is sent long-range exploitation machine by front end, and long-range exploitation machine receives front end transmission After resource, received resource is compiled, rear end obtains compiled resource by remotely developing machine.In this process, Front end needs after developer writes resource, then uploads resources into long-range exploitation machine, can not be compiled in real time to resource It translates, the process for causing resource to compile takes a long time, and the real-time that rear end obtains static resource is poor.For example, the exploit person of front end Member write resource by 3 seconds, and front end needs to send resource to long-range exploitation machine at this time, then is carried out by remotely developing machine Compiling, seriously affects the real-time that rear end obtains compiled static resource at this process possible time-consuming a few minutes.
In order to solve the above technical problems, Fig. 1 is a kind of process of the method for front and back end joint debugging provided in this embodiment Schematic diagram, referring to Fig. 1, this method comprises:
Step 101: long-range exploitation machine obtains the first access path that access compiles the static resource of generation through front end in real time, The static resource is obtained according to first access path;
Step 102: the long-range exploitation machine stores the static resource, and configures and access institute by the long-range exploitation machine The second access path of static resource is stated, so that rear end obtains the static resource according to second access path.
Method provided in this embodiment is executed by the long-range exploitation machine being arranged during the joint debugging of front and back end, this remotely develops machine It can be server.Static resource in the present embodiment is the resource compiled by front end, which may include code, text Word file and/or picture file, the present embodiment are without limitation.In software development process, the developer of front end is preceding It after end writes resource (resource may include code, picture etc.), is compiled in real time in front end, long-range exploitation machine is according to the One access path accesses the static resource compiled by front end, and static resource is stored in long-range exploitation machine, and rear end can be with Directly pass through remotely exploitation machine by the second access path and accesses static resource.Due to remotely develop machine acquisition be front end Compiled static resource, therefore do not need long-range exploitation machine and the static resource of acquisition is handled, rear end can be by remote These static resources are accessed in Cheng Kaifa machine, and real-time is good.Meanwhile long-range exploitation machine is capable of providing stable service, rear end is obtained Taking the process of static resource will not frequently be interrupted, and ensure that the stability that static resource obtains.
First access path is the position that front end is used to store static resource, and usual static resource is stored in the hard disk of front end In.Second access path is that long-range exploitation machine is used to store static resource.Under normal circumstances, the first access path and the second access Path is pre-set path, and front end default stores the static resource after compiling under the first access path, remotely Exploitation machine is also defaulted the static resource obtained from front end storage under the second access path, as long as therefore in front end, remotely open Hair machine and rear end have been respectively provided with the first access path and the step of the second access path can smoothly execute above-mentioned 101 to 102.
For example, in the present embodiment, the developer of front end has write one section for thumbing up to the content in social software Code, front end compiles this section of code in real time, the code after compiling is stored in the first access path.Long-range exploitation machine passes through First access path directly acquires the code after compiling, and the code after the compiling is second in the store path of remotely exploitation machine Access path.The code after compiling can rapidly be accessed by the second access path for rear end, so that the page of front end It is normal to show.
A kind of method for present embodiments providing front and back end joint debugging, long-range machine of developing pass through the first access path acquisition front end Static resource compiled in real time, the static resource that will acquire are stored onto long-range exploitation machine.Rear end passes through the second access path The long-range exploitation machine of access obtains static resource.In this process, remotely exploitation machine is real-time by the first access path acquisition front end Compiled static resource does not need long-range exploitation machine and is compiled to the resource obtained from front end, saves long-range exploitation machine The time of static resource is obtained, while rear end also can obtain static resource from long-range exploitation machine in time by the second access path, Real-time is good.On the other hand, remotely for exploitation machine as normally opened server-side, stability is preferable, is not in the feelings of service disruption Condition.Therefore, the static resource for obtaining compiling in real time by remotely developing machine, ensure that rear end obtain static resource real-time and Stability.
Further, on the basis of the above embodiments, the static money for obtaining access and compiling generation in real time through front end First access path in source obtains the static resource according to first access path, comprising:
Access is being obtained after front end compiles the first access path of the static resource of generation in real time, every preset duration root The request for accessing the static resource is sent to the front end according to first access path;
If accessing the static resource success according to first access path, the static resource is obtained;
If accessing the static resource according to first access path to fail, prompt information is issued.
Long-range exploitation machine periodically can obtain static resource from front end, for example, every preset duration according to the first access Path access static resource.Preset duration is artificial setting value, for example, 3 seconds.
The case where there certainly exist access static resource failures need to issue corresponding in this case according to failure cause Prompt information guarantee going on smoothly for development process so that developer finds failure cause in time.For example, failure is former Because being network failure, then remotely exploitation machine sends the prompt information because of network failure access static resource failure to the back-end;Failure The reason is that the first access path mistake, then issue the prompt information of the first access path mistake.
A kind of method for present embodiments providing front and back end joint debugging, periodically obtaining static resource from front end ensure that static state The real-time of resource acquisition.Prompt information is issued in time after the failure of back-end access static resource, to exclude failure cause in time, is protected Card goes on smoothly static resource access.
Further, on the basis of the various embodiments described above, if described described quiet according to first access path access The failure of state resource, then issue prompt information, comprising:
If accessing the static resource according to first access path to fail, and failure cause is first access road Diameter mistake then reacquires first access path, after getting the first new access path, according to the first new access Path obtains the static resource.
Wherein, front end is serviced by opening node so that long-range exploitation machine is able to access that the static resource stored thereon.Together Shi Yuancheng develops machine and is serviced also by node so that rear end is able to access that the static resource stored thereon and realizes from front-end access Static resource.
If front end changes the first access path, the first new access path need to be reset in long-range exploitation machine, is made It obtains remotely exploitation machine and passes through new the first access path reacquisition static resource.New first usually is set in remotely exploitation machine It after access path, needs to restart corresponding service, after restarting, static resource is reacquired by the first new access path.
Further, on the basis of the various embodiments described above, the storage static resource, and configure by described remote Cheng Kaifa machine accesses the second access path of the static resource, comprising:
It judges whether there is and stores the identical target of the filename of the static resource file in filename and the front end Otherwise file, is created and is stored in filename and the front end if so, the static resource is written in the file destination The identical file of filename of the static resource file, as the file destination, in the file destination described in write-in Static resource;
The access path of file destination described in configuration access accesses the static resource as by the long-range exploitation machine The second access path.
In order to facilitate the configuration of access path, usually in long-range exploitation machine in the filename and front end of storage static resource The filename for storing static resource is identical.Long-range exploitation machine is after getting static resource, if be not present in long-range exploitation machine File identical with the filename of static resource is stored in front end, then automatically create the filename with storage static resource in front end Identical file, static resource to be written in the file of creation.The mode of this storage static resource makes developer can To deduce the store path of the static resource in long-range exploitation machine according to the filename in front end, convenient for being carried out to store path Management.
Further, on the basis of the various embodiments described above, the storage static resource, and configure by described remote Cheng Kaifa machine accesses after the second access path of the static resource, further includes:
The rear end is sent by second access path, so that the rear end on the long-range exploitation machine by running Node service, the static resource is obtained according to second access path.
Long-range exploitation machine can send static resource store path to the back-end, so that static resource is according to long-range exploitation The store path that machine is sent accesses static resource.
Further, on the basis of the various embodiments described above, further includes:
After the request for receiving the access static resource that the rear end is sent according to second access path, if There are mistakes for second access path, then the prompt information to malfunction to rear end backward reference path.
For example, if static resource storage can not be accessed into other files by the second original access path Static resource, long-range exploitation machine can report an error to the back-end at this time, so that the path of access static resource is changed in rear end in time.
Further, on the basis of the various embodiments described above, the static resource includes script file, text file, view Frequently, the one or more in audio and picture file.
Specifically, remotely exploitation machine obtains static resource, and the process of back-end access static resource may include steps of: (1) front end is serviced in local boot node, and gets the path of local static resource.Such as: http: // 10.30.33.68: 3304/page/index.js.(2) on long-range exploitation machine, the node service of starting one.Wherein, long-range exploitation machine can lead to The createServer method for calling the http object built in node is crossed, a node server is established.(3) in foundation In node server, long-range machine automatic regular polling of developing sends ajax request to request the static resource for obtaining front end. (4) static resource that long-range exploitation machine will acquire writes (and the front end storage of one created in long-range exploitation machine file of the same name Static resource file of the same name) in.For example, remotely exploitation machine passes through the writeFile method for calling file object in node, The content of static resource is write in the file of the same name.(5) the long-range exploitation machine of configuration obtains static resource on the remote machine Address: present remote machine has had the file as local.The routing of the long-range exploitation machine of configuration, allows current static state Resource is in an addressable state.And access address is supplied to rear end developer and carries out joint debugging.
In above-mentioned step (3), it is built-in in node by calling that long-range exploitation machine, which obtains static resource from front end, What the get method of http object was realized.Local static resource path (i.e. above-mentioned first that long-range exploitation machine is arranged before Access path), request the local file of front end.If local static resource route diversion, request to report less than static resource Mistake stops poll.It needs this when to restart the service of the node on long-range exploitation machine with newest local static resource path. Restarting the node service on long-range exploitation machine can be realized by following code:
setInterval(function(){}
http.get(url,function(err,res){
Var body=' ';
Res.on (' data ', the function () content of current static resource { // got });
});
},3000);The static resource of request in // tri- seconds.
Method provided in this embodiment is used to improve the efficiency of front and back end joint debugging in the exploitation joint debugging stage, enables rear end Newest static resource is accessed in real-time stabilization, guarantees that front end page is normally shown.It is realized especially by terms of following two (1) static resource locally changed is obtained by remotely exploitation machine in real time, specifically, sets local static resource path Afterwards, node service is created on long-range exploitation machine, and poll is serviced by the node and sends request, constantly to obtain newest Ground static resource.(2) the local static resource that will acquire is published in stable environment.Specifically, by remotely developing Node service in machine, the static file that will acquire are write on long-range exploitation machine, and long-range exploitation machine is capable of providing continually and steadily Service.
Fig. 2 is a kind of structural block diagram of the device of front and back end joint debugging provided in this embodiment, including obtains module 201 and match Set module 202, wherein
Obtain module 201, for get access front end static resource the first access path after, according to described first Access path obtains the static resource;
Configuration module 202 for storing the static resource, and configures and accesses the static state by the long-range exploitation machine Second access path of resource, so that rear end obtains the static resource according to second access path.
The side for the front and back end joint debugging that the device of front and back end joint debugging provided in this embodiment is provided suitable for above-described embodiment Method, details are not described herein.
A kind of device of front and back end joint debugging is present embodiments provided, long-range machine of developing passes through the first access path acquisition front end Static resource compiled in real time, the static resource that will acquire are stored onto long-range exploitation machine.Rear end passes through the second access path The long-range exploitation machine of access obtains static resource.In this process, remotely exploitation machine is real-time by the first access path acquisition front end Compiled static resource does not need long-range exploitation machine and is compiled to the resource obtained from front end, saves long-range exploitation machine The time of static resource is obtained, while rear end also can obtain static resource from long-range exploitation machine in time by the second access path, Real-time is good.On the other hand, remotely for exploitation machine as normally opened server-side, stability is preferable, is not in the feelings of service disruption Condition.Therefore, the static resource for obtaining compiling in real time by remotely developing machine, ensure that rear end obtain static resource real-time and Stability.
Further, on the basis of the above embodiments, the acquisition module is also used to real-time through front end in acquisition access After the first access path for compiling the static resource generated, every preset duration according to first access path to the front end Send the request for accessing the static resource;If accessing the static resource success according to first access path, obtain The static resource;If accessing the static resource according to first access path to fail, prompt information is issued.
Further, on the basis of the various embodiments described above, if the acquisition module is also used to according to first access The failure of static resource described in path access, and failure cause is the first access path mistake, then reacquires described first Access path obtains the static resource according to the first new access path after getting the first new access path.
Further, on the basis of the various embodiments described above, the configuration module is also used to judge whether there is filename File destination identical with the filename for storing the static resource file in the front end, if so, in the file destination Otherwise the middle write-in static resource stores the file famous prime minister of the static resource file in creation filename and the front end The static resource is written as the file destination in same file in the file destination;The text of target described in configuration access The access path of part, as the second access path for accessing the static resource by the long-range exploitation machine.
Further, on the basis of the various embodiments described above, the configuration module is also used to second access path It is sent to the rear end, so that the rear end is serviced by the node run on the long-range exploitation machine, is visited according to described second Diameter of asking the way obtains the static resource.
It further, further include cue module on the basis of the various embodiments described above, the cue module is for receiving After the request of the access static resource sent to the rear end according to second access path, if second access road There are mistakes for diameter, then the prompt information to malfunction to rear end backward reference path.
Further, on the basis of the various embodiments described above, the static resource includes script file, text file, view Frequently, the one or more in audio and picture file.
Fig. 3 is the structural block diagram for showing electronic equipment provided in this embodiment.
Referring to Fig. 3, the electronic equipment includes: processor (processor) 310, communication interface (Communications Interface) 320, memory (memory) 330 and communication bus 340, wherein processor 310, communication interface 320, storage Device 330 completes mutual communication by communication bus 340.Processor 310 can call the logical order in memory 330, To execute following method: long-range exploitation machine obtains the first access path that access compiles the static resource of generation through front end in real time, The static resource is obtained according to first access path;The long-range exploitation machine stores the static resource, and configures logical The second access path that the long-range exploitation machine accesses the static resource is crossed, so that rear end is obtained according to second access path Take the static resource.
In addition, the logical order in above-mentioned memory 330 can be realized by way of SFU software functional unit and conduct Independent product when selling or using, can store in a computer readable storage medium.Based on this understanding, originally Substantially the part of the part that contributes to existing technology or the technical solution can be in other words for the technical solution of invention The form of software product embodies, which is stored in a storage medium, including some instructions to So that a computer equipment (can be personal computer, server or the network equipment etc.) executes each implementation of the present invention The all or part of the steps of example the method.And storage medium above-mentioned include: USB flash disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), magnetic or disk etc. it is various It can store the medium of program code.
The present embodiment provides a kind of non-transient computer readable storage mediums, are stored thereon with computer program, the calculating Machine program is executed by processor following method: long-range exploitation machine obtains that access compiles the static resource of generation through front end in real time One access path obtains the static resource according to first access path;The long-range exploitation machine storage static money Source, and configure and access the second access path of the static resource by the long-range exploitation machine, so that rear end is according to described the Two access path obtain the static resource.
The present embodiment discloses a kind of computer program product, and the computer program product includes being stored in non-transient calculating Computer program on machine readable storage medium storing program for executing, the computer program include program instruction, when described program instruction is calculated When machine executes, computer is able to carry out method provided by above-mentioned each method embodiment, it may for example comprise: long-range exploitation machine obtains Access compiles the first access path of the static resource of generation through front end in real time, is obtained according to first access path described quiet State resource;The long-range exploitation machine stores the static resource, and configures and access the static money by the long-range exploitation machine Second access path in source, so that rear end obtains the static resource according to second access path.
The embodiments such as electronic equipment described above are only schematical, wherein it is described as illustrated by the separation member Unit may or may not be physically separated, and component shown as a unit may or may not be object Manage unit, it can it is in one place, or may be distributed over multiple network units.It can select according to the actual needs Some or all of the modules therein is selected to achieve the purpose of the solution of this embodiment.Those of ordinary skill in the art are not paying wound In the case where the labour for the property made, it can understand and implement.
Through the above description of the embodiments, those skilled in the art can be understood that each embodiment can It realizes by means of software and necessary general hardware platform, naturally it is also possible to pass through hardware.Based on this understanding, on Stating technical solution, substantially the part that contributes to existing technology can be embodied in the form of software products in other words, should Computer software product may be stored in a computer readable storage medium, such as ROM/RAM, magnetic disk, CD, including several fingers It enables and using so that a computer equipment (can be personal computer, server or the network equipment etc.) executes each implementation Method described in certain parts of example or embodiment.
Finally, it should be noted that the above various embodiments is only to illustrate the technical solution of the embodiment of the present invention, rather than it is right It is limited;Although the embodiment of the present invention is described in detail referring to foregoing embodiments, the ordinary skill of this field Personnel are it is understood that it is still possible to modify the technical solutions described in the foregoing embodiments, or to part Or all technical features are equivalently replaced;And these are modified or replaceed, it does not separate the essence of the corresponding technical solution The range of each embodiment technical solution of the embodiment of the present invention.

Claims (10)

1. a kind of method of front and back end joint debugging characterized by comprising
Long-range exploitation machine obtains the first access path that access compiles the static resource of generation through front end in real time, according to described first Access path obtains the static resource;
The long-range exploitation machine stores the static resource, and configures and access the static resource by the long-range exploitation machine Second access path, so that rear end obtains the static resource according to second access path.
2. the method for front and back end joint debugging according to claim 1, which is characterized in that the acquisition access is compiled in real time through front end The first access path for translating the static resource of generation obtains the static resource according to first access path, comprising:
Access is being obtained after front end compiles the first access path of the static resource of generation in real time, every preset duration according to institute It states the first access path and sends the request for accessing the static resource to the front end;
If accessing the static resource success according to first access path, the static resource is obtained;
If accessing the static resource according to first access path to fail, prompt information is issued.
3. the method for front and back end joint debugging according to claim 2, which is characterized in that if described according to first access road Diameter accesses the static resource failure, then issues prompt information, comprising:
If accessing the static resource according to first access path to fail, and failure cause is that first access path is wrong Accidentally, then first access path is reacquired, after getting the first new access path, according to the first new access path Obtain the static resource.
4. the method for front and back end joint debugging according to claim 1, which is characterized in that the storage static resource, and Configuration accesses the second access path of the static resource by the long-range exploitation machine, comprising:
It judges whether there is and stores the identical file destination of the filename of the static resource file in filename and the front end, If so, the static resource is written in the file destination, otherwise, stored in creation filename and the front end described quiet The static money is written as the file destination in the identical file of the filename of state resource file in the file destination Source;
The access path of file destination described in configuration access accesses the of the static resource as by the long-range exploitation machine Two access path.
5. the method for front and back end joint debugging according to claim 1, which is characterized in that the storage static resource, and Configuration is accessed by the long-range exploitation machine after the second access path of the static resource, further includes:
The rear end is sent by second access path, so that the rear end is by running on the long-range exploitation machine Node service obtains the static resource according to second access path.
6. the method for front and back end joint debugging according to claim 1, which is characterized in that further include:
After the request for receiving the access static resource that the rear end is sent according to second access path, if described There are mistakes for second access path, then the prompt information to malfunction to rear end backward reference path.
7. the method for front and back end joint debugging according to claim 1, which is characterized in that the static resource includes script text One or more in part, text file, video, audio and picture file.
8. a kind of device of front and back end joint debugging characterized by comprising
Module is obtained, for accessing road according to described first after the first access path for getting access front end static resource Diameter obtains the static resource;
Configuration module for storing the static resource, and configures and accesses the static resource by the long-range exploitation machine Second access path, so that rear end obtains the static resource according to second access path.
9. a kind of electronic equipment including memory, processor and stores the calculating that can be run on a memory and on a processor Machine program, which is characterized in that the processor realizes front and back as described in any one of claim 1 to 7 when executing described program The step of holding the method for joint debugging.
10. a kind of non-transient computer readable storage medium, is stored thereon with computer program, which is characterized in that the computer The step of method of front and back end joint debugging as described in any one of claim 1 to 7 is realized when program is executed by processor.
CN201910689951.7A 2019-07-29 2019-07-29 A kind of method and device of front and back end joint debugging Pending CN110502238A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910689951.7A CN110502238A (en) 2019-07-29 2019-07-29 A kind of method and device of front and back end joint debugging

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910689951.7A CN110502238A (en) 2019-07-29 2019-07-29 A kind of method and device of front and back end joint debugging

Publications (1)

Publication Number Publication Date
CN110502238A true CN110502238A (en) 2019-11-26

Family

ID=68587674

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910689951.7A Pending CN110502238A (en) 2019-07-29 2019-07-29 A kind of method and device of front and back end joint debugging

Country Status (1)

Country Link
CN (1) CN110502238A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112882844A (en) * 2021-02-07 2021-06-01 成都新希望金融信息有限公司 Network front-end and back-end based joint debugging method and device and storage medium
CN116760811A (en) * 2023-08-16 2023-09-15 中移(苏州)软件技术有限公司 HTTP data processing method, device and readable storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104133685A (en) * 2014-08-05 2014-11-05 广州唯品会网络技术有限公司 Method and system for front-end development of website
CN104978194A (en) * 2015-06-25 2015-10-14 北京京东尚科信息技术有限公司 Web page front-end development method and apparatus
CN107590145A (en) * 2016-07-06 2018-01-16 北京神州泰岳软件股份有限公司 A kind for the treatment of method and apparatus of page static resource

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104133685A (en) * 2014-08-05 2014-11-05 广州唯品会网络技术有限公司 Method and system for front-end development of website
CN104978194A (en) * 2015-06-25 2015-10-14 北京京东尚科信息技术有限公司 Web page front-end development method and apparatus
CN107590145A (en) * 2016-07-06 2018-01-16 北京神州泰岳软件股份有限公司 A kind for the treatment of method and apparatus of page static resource

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
佚名: "前后端联调(1)-Web前端部分", Retrieved from the Internet <URL:https://blog.csdn.net/fairyloycine/article/details/90055751> *

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112882844A (en) * 2021-02-07 2021-06-01 成都新希望金融信息有限公司 Network front-end and back-end based joint debugging method and device and storage medium
CN112882844B (en) * 2021-02-07 2024-01-26 成都新希望金融信息有限公司 Joint debugging method, device and storage medium based on network front end and network back end
CN116760811A (en) * 2023-08-16 2023-09-15 中移(苏州)软件技术有限公司 HTTP data processing method, device and readable storage medium
CN116760811B (en) * 2023-08-16 2023-11-03 中移(苏州)软件技术有限公司 HTTP data processing method, device and readable storage medium

Similar Documents

Publication Publication Date Title
CN112118565B (en) Multi-tenant service gray level publishing method, device, computer equipment and storage medium
CN106528224B (en) Content updating method, server and system for Docker container
US10601680B2 (en) Application resiliency using APIs
CN104915226B (en) A kind of network device software starting method, apparatus and the network equipment
US20130198730A1 (en) Update systems responsive to ongoing processing at a storage system
US11086711B2 (en) Machine-trainable automated-script customization
US20210211363A1 (en) QoS-OPTIMIZED SELECTION OF A CLOUD MICROSERVICES PROVIDER
CN112333096A (en) Micro-service traffic scheduling method and related components
CN106201811B (en) The fault recovery method and terminal of application program
CN109391655A (en) Service gray scale dissemination method, device, system and storage medium
CN105450759A (en) System mirror image management method and device
CN109039787A (en) log processing method, device and big data cluster
CN111064626B (en) Configuration updating method, device, server and readable storage medium
CN110647460B (en) Test resource management method and device and test client
CN109492181A (en) Method for page jump, device, computer equipment and storage medium
CN104281477A (en) Automatic software deployment method for computer system
CN109857391A (en) Processing method and processing device, storage medium and the electronic device of data
US11221943B2 (en) Creating an intelligent testing queue for improved quality assurance testing of microservices
CN110502238A (en) A kind of method and device of front and back end joint debugging
US20220206836A1 (en) Method and Apparatus for Processing Virtual Machine Migration, Method and Apparatus for Generating Virtual Machine Migration Strategy, Device and Storage Medium
CN115964195A (en) DDS theme process communication mode configuration method and device
CN115048187A (en) Operator-based pvc file importing method, device and storage medium
US11210156B1 (en) Intelligent distributed tracing
CN109101253B (en) Management method and device for host in cloud computing system
CN110874238A (en) Online service updating method and device

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