CN108280174A - Front end file construction method and server, page access method and terminal - Google Patents

Front end file construction method and server, page access method and terminal Download PDF

Info

Publication number
CN108280174A
CN108280174A CN201810059264.2A CN201810059264A CN108280174A CN 108280174 A CN108280174 A CN 108280174A CN 201810059264 A CN201810059264 A CN 201810059264A CN 108280174 A CN108280174 A CN 108280174A
Authority
CN
China
Prior art keywords
file
identification information
static
source code
static resource
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
CN201810059264.2A
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.)
Wangsu Science and Technology Co Ltd
Original Assignee
Wangsu Science and 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 Wangsu Science and Technology Co Ltd filed Critical Wangsu Science and Technology Co Ltd
Priority to CN201810059264.2A priority Critical patent/CN108280174A/en
Publication of CN108280174A publication Critical patent/CN108280174A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/957Browsing optimisation, e.g. caching or content distillation
    • G06F16/9574Browsing optimisation, e.g. caching or content distillation of access to content, e.g. by caching
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/13File access structures, e.g. distributed indices
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/17Details of further file system functions
    • G06F16/172Caching, prefetching or hoarding of files

Abstract

The present invention provides a kind of front end file construction method and server, page access method and terminals, wherein the front end file construction method includes:It builds and asks in response to the front end file, determine whether carry static resource link in the front end file of structure;In the case where determining that carrying static resource links, increase revision identification information in static resource link, wherein the revision identification information is used to identify the version that the static resource links linked static file;Structure, which is linked, based on the static resource for carrying revision identification information obtains front end file.The present invention, which solves existing updated static file, timely and effective can not be presented to the low technical problem of inefficiency caused by user, user experience, reach effective technique effect for promoting user experience.

Description

Front end file construction method and server, page access method and terminal
Technical field
The present invention relates to Internet technical field, more particularly to a kind of front end file construction method and server, the page are visited Ask method and terminal.
Background technology
It reaches the standard grade in exploitation in view of existing Web page system and does not do the version planning of static file early period, cause to work as user For static file when browsing webpage, browser often transfers document presentation to client from local cache, without The real-time communication of static file is carried out with server.
It will certainly cause the update of most static file that can not timely and effectively show user in this way, and lead to net Page displaying inefficiency, update can not be presented in time, and user experience is relatively low.
In view of the above-mentioned problems, currently no effective solution has been proposed.
Invention content
An embodiment of the present invention provides a kind of front end file construction method and server, page access method and terminal, with Reach the technique effect for being presented to the user updated static file in time.
On the one hand a kind of front end file construction method is provided, including:
It builds and asks in response to the front end file, determine in the front end file of structure whether carry static resource chain It connects;
In the case where determining that carrying static resource links, increase version identifier letter in static resource link Breath, wherein the revision identification information is used to identify the version that the static resource links linked static file;
Structure, which is linked, based on the static resource for carrying revision identification information obtains front end file.
In one embodiment, the revision identification information includes:MD5 values.
In one embodiment, the static file includes at least one of:Js files, css files.
In one embodiment, increase revision identification information in static resource link, including:
Determine that the static resource links whether linked static file changes;
In the case of determining change, revision identification information.
In one embodiment, increase revision identification information in static resource link, including:
Increase revision identification information in static resource link by gulp.
In one embodiment, structure is linked based on the static resource for carrying revision identification information and obtains front end text Part, including:
It builds to obtain the front end file by Jenkins.
In one embodiment, before increasing revision identification information in static resource link, further include:Backup Source code directory.
In one embodiment, it is built based on the static resource link for carrying revision identification information described before obtaining After holding file, further include:Restore the source code directory of backup.
In one embodiment, it builds to obtain the front end file by Jenkins, including:
Newest code is obtained to source code directory;
It calls the first external scripts of execution that source code directory is backuped to backup directory, and changes the source code directory, Increase revision identification information for the static resource link in the source code directory;
The front end file of the source code directory is built, and the code after structure is exported to target directory;
It calls and executes the second external scripts deletion modified source code directory, and the backup directory is changed to source Code directory.
On the other hand a kind of page access method is provided, including:
Obtain accessing page request;
In response to the accessing page request, the front end text that any one of claim 1 to 7 is built is transferred from server Part;
By the front end document presentation transferred to user.
On the other hand it provides a kind of front end file structure server, including processor and can be held for storing processor The memory of row instruction, the processor are realized when executing described instruction:
It builds and asks in response to the front end file, determine in the front end file of structure whether carry static resource chain It connects;
In the case where determining that carrying static resource links, increase version identifier letter in static resource link Breath, wherein the revision identification information is used to identify the version that the static resource links linked static file;
Structure, which is linked, based on the static resource for carrying revision identification information obtains front end file.
In one embodiment, the revision identification information includes:MD5 values.
In one embodiment, the static file includes at least one of:Js files, css files.
In one embodiment, the front end file structure server increases version mark in static resource link Know information, including:
Determine that the static resource links whether linked static file changes;
In the case of determining change, revision identification information.
In one embodiment, the front end file structure server increases version mark in static resource link Know information, including:
Increase revision identification information in static resource link by gulp.
In one embodiment, the front end file structure server is based on the static money for carrying revision identification information Linking sources build to obtain front end file, including:
It builds to obtain the front end file by Jenkins.
In one embodiment, the front end file structure server increases version mark in static resource link Before knowing information, further include:Backup source code directory.
In one embodiment, the front-end server described based on the static resource for carrying revision identification information After link structure obtains front end file, further include:Restore the source code directory of backup.
In one embodiment, the front end file structure server builds to obtain the front end text by Jenkins Part, including:
Newest code is obtained to source code directory;
It calls the first external scripts of execution that source code directory is backuped to backup directory, and changes the source code directory, Increase revision identification information for the static resource link in the source code directory;
The front end file of the source code directory is built, and the code after structure is exported to target directory;
It calls and executes the second external scripts deletion modified source code directory, and the backup directory is changed to source Code directory.
On the other hand a kind of page access terminal is provided, including processor and for storing processor-executable instruction Memory, the processor realizes when executing described instruction:
Obtain accessing page request;
In response to the accessing page request, the front end file of structure is transferred from server;
By the front end document presentation transferred to user.
On the other hand a kind of computer readable storage medium is provided, is stored thereon with computer instruction, described instruction quilt The step of above method is realized when execution.
In embodiments of the present invention, in the case where determining that carrying static resource links, increase in static resource link Add the identification information for linking the version of linked static file for identifying the static resource, so that the front end generated Static file in file is newest static file, and solving existing updated static file timely and effective can not show It gives inefficiency caused by user, user experience low technical problem, has reached effective technique effect for promoting user experience.
Description of the drawings
Attached drawing described herein is used to provide further understanding of the present invention, and is constituted part of this application, not Constitute limitation of the invention.In the accompanying drawings:
Fig. 1 is the method flow diagram of file construction method in front end according to the ... of the embodiment of the present invention;
Fig. 2 is the construction method of the front end file according to the ... of the embodiment of the present invention that gulp components are integrated on Jenkins Method flow diagram;
Fig. 3 is the integrated structure flow charts of Jenkins according to the ... of the embodiment of the present invention and gulp;
Fig. 4 is the method flow diagram of page access method according to the ... of the embodiment of the present invention;
Fig. 5 is the configuration diagram of front end file structure server according to the ... of the embodiment of the present invention;
Fig. 6 is the structure diagram of file construction device in front end according to the ... of the embodiment of the present invention.
Specific implementation mode
To make the objectives, technical solutions, and advantages of the present invention clearer, right with reference to embodiment and attached drawing The present invention is described in further details.Here, the exemplary embodiment and its explanation of the present invention be for explaining the present invention, but simultaneously It is not as a limitation of the invention.
For the existing page show there are the problem of, it is contemplated that can be static file be arranged revision identification information, When integrated front end file, revision identification information can be integrated in the file of front end, version identifier can be based in this way and believed Breath determines whether file is newest file, the update to static file is realized based on revision identification information, so as to protect New static file is presented to user by card, to promote user experience.
Based on this, a kind of front end file construction method is provided in this example, as shown in Figure 1, may include steps of:
Step 101:The front end file structure request is responded, determines in the front end file of structure whether carry static money Linking sources;
Step 102:In the case where determining that carrying static resource links, increase version in static resource link Identification information, wherein the revision identification information is used to identify the version that the static resource links linked static file;
Step 103:Structure, which is linked, based on the static resource for carrying revision identification information obtains front end file.
Above-mentioned revision identification information can be an identification information, for some file of unique mark, if this is literary Part changes, then the corresponding identification information of this document is also required to change.For this purpose, identification information can be used as by calculating MD5 values, Since MD5 values are calculated according to file content, when file content changes, inevitably result in MD5 values hair Changing, in this way by selecting MD5 values that can effectively identify as revision identification information the different editions of file.
Using MD5 values as file version identifier information only it is a kind of exemplary statement it should be noted, however, that above-mentioned, When actually realizing, other types of identification information can be selected as file version identifier, the application couple as needed This is not construed as limiting, as long as can realize can with the identification information that file content is different and changes FileVersion automatically.
In one embodiment, above-mentioned static file can include but is not limited at least one of:Js files, css File.Static file is the file that those will not generally change, usually directly from caching read can, only forcing In the case that refreshing or Compulsory Removal cache, browser can just go to obtain new static file.In this example, by static state The static file that resource link is linked increases revision identification information, obtains front end file to automate structure so that for quiet The modification of state resource, it is only necessary to simple refresh page, so that it may to see modified static file, brush is forced without triggering New or removing browser rs cache.
In order to enable the modification of static file can be learned in time, it may be determined that static resource links linked static state Whether file changes;In the case where determining that static file changes, revision identification information, so that static file Modification can be embodied in time by the change of revision identification information.
In above-mentioned front end file construction method, Jenkins can be integrated in using gulp components to the structure of front end file On realize.Wherein, Jenkins is the tool of a continuous integrating, from code detection, compiling structure, testing results, result Record, test statistics etc., can all automate realization, not need manual intervention;Gulp is a kind of automation structure of front end file Tool is built, site resource can be optimized.Therefore, Jenkins and gulp can be combined, to realize front end file Structure.However, there is no gulp plug-in units by currently used Jenkins, therefore, if it is desired in integrated gulp to Jenkins, that It just needs to use the building process of Jenkins.
Based on this, gulp automation structure front end files, the static file linked by static resource may be used Increase MD5 values and edition upgrading, static file occurs so that the variation of static file can be reflected by MD5 values In the case of changing, it can be embodied in the file of front end in time.I.e., it is possible in automation structure deployment tool Jenkins Upper integrated gulp components, if the page changes, when user initiates access request, the update of static file can be straight It connects and shows in front of the user, refresh page need not be forced again, improve user experience.
Wherein, revision identification information is increased by the static file that static resource links, may include:Pass through gulp Revision identification information is increased by the static file that static resource links, which can carry provides in static state In linking sources.Structure is linked based on the static resource for carrying revision identification information and obtains front end file, may include:Pass through Jenkins builds to obtain front end file.
In addition, for the version control system of open source code, it is open when executing the construction method of above-mentioned front end file Code on the version control system of source code can be updated, when carrying out second of front end file structure, test event Source code directory under code and open source code version control system on code will be inconsistent, to generate punching It is prominent.Therefore, in order to ensure that source code directory and the code release of the version control system of open source code do not conflict, in step Before 102, can also include:Backup source code directory;After step 103, can also include:Restore the source code mesh of backup Record.
In a particular embodiment, as shown in Fig. 2, being to integrate gulp components on automation structure deployment tool Jenkins Example, the construction method of front end file can specifically include following steps:
S1:Newest code is obtained to source code directory;
Specifically, Jenkins is pulled in the code manager of the version control system (such as svn) of open source code most In fresh code to source code directory src.
S2:It calls the first external scripts of execution that source code directory is backuped to backup directory, and changes source code directory, be Static resource link in source code directory increases revision identification information;
Specifically, glup plug-in units are integrated in the first external scripts, source code directory is first backuped into backup directory, then It is modified to source code directory src by glup plug-in units, is increased by the static file that static resource therein links Revision identification information, such as MD5 values,.
S3:The front end file of the source code directory is built, and the code after structure is exported to target directory;
Specifically, Jenkins carries out versioned to the front end file of modified source code directory src, and by version Code after change is output to target directory target.
S4:It calls and executes the modified source code directory of the second external scripts deletion, and the backup directory is changed to source Code directory.
Specifically, the second external scripts are executed, modified source code directory scr are deleted, and backup directory is changed Name reverts to source code directory src.In order to further illustrate the process of the integrated structures of Jenkins and glup, with reference to figure 3, wherein left one side of something is the flow of Jenkins structures, right one side of something is the implementation procedure of external scripts, is integrated in external scripts Glup plug-in units.Script shellA.sh is above-mentioned the first external scripts, for being backed up to source code.Meanwhile this first It is integrated with glup plug-in units in external scripts, modifies to source code directory src, static resource therein is linked Static file increases revision identification information, such as MD5 values.Script shellB.sh is above-mentioned the second external scripts, for will be standby Part catalogue reverts to source code directory.Therefore, using the building process of Jenkins, glup plug-in units are integrated, static resource is linked Increase revision identification information, while executing the external scripts to source code backup and recovery respectively before and after structure, in this way can It realizes automation structure front end file, and can guarantee that the code of the version control system of source code directory and open source code does not rush It is prominent.
A kind of page access method is additionally provided, such as in this example based on above-mentioned provided front end file construction method Shown in Fig. 4, it may include steps of:
Step 401:Obtain accessing page request;
Step 402:In response to the accessing page request, transferred from server based on before Jenkins and gulp structures Hold file;
Step 403:By the front end document presentation transferred to user.
In upper example, by integrating gulp components on automation structure deployment tool Jenkins, to reach automation version The purpose of this upgrading, in order to provide the scheme of good front end edition upgrading, if the page changes, with When access request is initiated at family, update will directly show in front of the user, need not force refresh page again, improve user's body It tests.
In view of why will appear the problem of static file can not timely update in existing system, it is primarily due to clear Device of looking at can generally transfer the static file in local cache, without obtaining static file from server.Based on this, if can be with Control browser actively abandons the resource in caching, but to new resources are loaded in server, then will be so that after the update page Static file can be presented to the user in time, each system upgrade can be by newest showing interface to user.
For this purpose, in view of that can be that revision identification information is arranged in static file, when integrated front end file, can incite somebody to action Revision identification information is integrated in the file of front end, can determine whether file is newest text based on revision identification information in this way Part, the update based on revision identification information realization to static file, thereby may be ensured that new static file being presented to user, To promote user experience.
Because of the existing web page contents shown in response to web page access, usually use local cache, not with service Device real-time communication static file, this results in the update of most css and js files that can not timely and effectively show user. In this example, new resources are loaded in order in the case of less manpower and resource, allow browser actively to abandon caching.Pass through The combination of Jenkins and gulp realizes to combine the two and removes browser rs cache to update the files such as js, css in the page, Each system upgrade can be by newest showing interface to user.
The embodiment of the method that the embodiment of the present application is provided can be filled in server, terminal or similar operation Set middle execution.For running on computer terminals, Fig. 5 is a kind of front end file structure server of the embodiment of the present invention Hardware block diagram.As shown in figure 5, terminal 10 may include one or more (only showing one in figure) processors 102 (processor 102 can include but is not limited to the processing unit of Micro-processor MCV or programmable logic device FPGA etc.) are used In the memory 104 of storage data and for the transmission module 106 of communication function.Those of ordinary skill in the art can manage Solution, structure shown in fig. 5 are only to illustrate, and do not cause to limit to the structure of above-mentioned server.For example, server 10 can also wrap Include than shown in Fig. 5 more either less components or with the configuration different from shown in Fig. 5.
Memory 104 can be used for storing the software program and module of application software, such as the short message in the embodiment of the present invention Corresponding program instruction/the module of sending method of breath, processor 102 are stored in the software program in memory 104 by operation And module realizes the front end file structure of above-mentioned application program to perform various functions application and data processing Method.Memory 104 may include high speed random access memory, may also include nonvolatile memory, such as one or more magnetism Storage device, flash memory or other non-volatile solid state memories.In some instances, memory 104 can further comprise phase For the remotely located memory of processor 102, these remote memories can pass through network connection to terminal 10.On The example for stating network includes but not limited to internet, intranet, LAN, mobile radio communication and combinations thereof.
Transmission module 106 is used to receive via a network or transmission data.Above-mentioned network specific example may include The wireless network that the communication providers of terminal 10 provide.In an example, transmission module 106 includes that a network is suitable Orchestration (Network Interface Controller, NIC), can be connected with other network equipments by base station so as to Internet is communicated.In an example, transmission module 106 can be radio frequency (Radio Frequency, RF) module, For wirelessly being communicated with internet.
In software view, above-mentioned front end file construction device can be with as shown in fig. 6, may include:
Determining module 601 is asked for being built in response to the front end file, determines whether taken in the front end file of structure It is linked with static resource;
Increase module 602, for determine carry static resource link in the case of, the static resource link in Increase revision identification information, wherein the revision identification information is used to identify the static resource and links linked static state text The version of part;
Module 603 is built, front end file is obtained for linking structure based on the static resource for carrying revision identification information.
In one embodiment, above-mentioned revision identification information may include:MD5 values.
In one embodiment, above-mentioned static file can include but is not limited at least one of:Js files, css File.
In one embodiment, increasing module 602 can specifically determine that the static resource links linked static state Whether file changes;In the case of determining change, revision identification information.
In one embodiment, increase module 602 by gulp can specifically to increase in static resource link Revision identification information.
In one embodiment, structure module 603 can specifically build to obtain the front end file by Jenkins.
In one embodiment, file construction device in front end can also include:Backup module, in static resource chain It connects before increasing revision identification information, backup source code directory.
In one embodiment, file construction device in front end can also include:Recovery module, for based on carrying The static resource link structure of revision identification information obtains restoring the source code directory backed up after the file of front end.
In one embodiment, structure module 603 may include:Acquiring unit, for obtaining newest code to source generation Code catalogue;Call unit, for calling the first external scripts of execution that source code directory is backuped to backup directory, and described in modification Source code directory is that the static resource link in the source code directory increases revision identification information;Construction unit, for institute The front end file for stating source code directory is built, and the code after structure is exported to target directory;Unit is changed, for adjusting The modified source code directory is deleted with the second external scripts are executed, and the backup directory is changed to source code directory.
In this example, a kind of page access terminal is additionally provided, including processor and executable for storing processor The memory of instruction, the processor are realized when executing described instruction:
S1:Obtain accessing page request;
S2:In response to the accessing page request, the front end text built based on Jenkins and gulp is transferred from server Part;
S3:By the front end document presentation transferred to user.
In another embodiment, a kind of software is additionally provided, the software is for executing above-described embodiment and preferred reality Apply the technical solution described in mode.
In another embodiment, a kind of storage medium is additionally provided, above-mentioned software is stored in the storage medium, it should Storage medium includes but not limited to:CD, floppy disk, hard disk, scratch pad memory etc..
It can be seen from the above description that the embodiment of the present invention realizes following technique effect:It is carried in determination quiet In the case of state resource link, increases in static resource link and link linked static state text for identifying the static resource The identification information of the version of part solves so that the static file in the front end file generated is newest static file Existing updated static file timely and effective can not be presented to the low technology of inefficiency caused by user, user experience and ask Topic has reached effective technique effect for promoting user experience.
Obviously, those skilled in the art should be understood that each module of the above-mentioned embodiment of the present invention or each step can be with It is realized with general computing device, they can be concentrated on a single computing device, or be distributed in multiple computing devices On the network formed, optionally, they can be realized with the program code that computing device can perform, it is thus possible to by it Store and be performed by computing device in the storage device, and in some cases, can be to be held different from sequence herein The shown or described step of row, either they are fabricated to each integrated circuit modules or will be multiple in them Module or step are fabricated to single integrated circuit module to realize.In this way, the embodiment of the present invention be not limited to it is any specific hard Part and software combine.
The foregoing is only a preferred embodiment of the present invention, is not intended to restrict the invention, for the skill of this field For art personnel, the embodiment of the present invention can have various modifications and variations.All within the spirits and principles of the present invention, made by Any modification, equivalent substitution, improvement and etc. should all be included in the protection scope of the present invention.

Claims (21)

1. a kind of front end file construction method, which is characterized in that including:
It builds and asks in response to the front end file, determine whether carry static resource link in the front end file of structure;
In the case where determining that carrying static resource links, increase revision identification information in static resource link, In, the revision identification information is used to identify the version that the static resource links linked static file;
Structure, which is linked, based on the static resource for carrying revision identification information obtains front end file.
2. according to the method described in claim 1, it is characterized in that, the revision identification information includes:MD5 values.
3. according to the method described in claim 1, it is characterized in that, the static file includes at least one of:Js files, Css files.
4. according to the method described in claim 1, it is characterized in that, increasing version identifier letter in static resource link Breath, including:
Determine that the static resource links whether linked static file changes;
In the case of determining change, revision identification information.
5. according to the method described in claim 1, it is characterized in that, increasing version identifier letter in static resource link Breath, including:
Increase revision identification information in static resource link by gulp.
6. according to the method described in claim 5, it is characterized in that, being linked based on the static resource for carrying revision identification information Structure obtains front end file, including:
It builds to obtain the front end file by Jenkins.
7. according to the method described in claim 1, it is characterized in that, increasing revision identification information in static resource link Before, further include:Backup source code directory.
8. the method according to the description of claim 7 is characterized in that described based on the static money for carrying revision identification information Linking sources are built after obtaining front end file, further include:Restore the source code directory of backup.
9. the method according to the description of claim 7 is characterized in that building to obtain the front end file by Jenkins, wrap It includes:
Newest code is obtained to source code directory;
It calls the first external scripts of execution that source code directory is backuped to backup directory, and changes the source code directory, for institute The static resource link stated in source code directory increases revision identification information;
The front end file of the source code directory is built, and the code after structure is exported to target directory;
It calls and executes the second external scripts deletion modified source code directory, and the backup directory is changed to source code Catalogue.
10. a kind of page access method, which is characterized in that including:
Obtain accessing page request;
In response to the accessing page request, the front end file that any one of claim 1 to 7 is built is transferred from server;
By the front end document presentation transferred to user.
11. a kind of front end file builds server, including processor and the memory for storing processor-executable instruction, The processor is realized when executing described instruction:
It builds and asks in response to the front end file, determine whether carry static resource link in the front end file of structure;
In the case where determining that carrying static resource links, increase revision identification information in static resource link, In, the revision identification information is used to identify the version that the static resource links linked static file;
Structure, which is linked, based on the static resource for carrying revision identification information obtains front end file.
12. server according to claim 11, which is characterized in that the revision identification information includes:MD5 values.
13. server according to claim 11, which is characterized in that the static file includes at least one of:js File, css files.
14. server according to claim 11, which is characterized in that the front end file builds server in the static state Increase revision identification information in resource link, including:
Determine that the static resource links whether linked static file changes;
In the case of determining change, revision identification information.
15. server according to claim 11, which is characterized in that the front end file builds server in the static state Increase revision identification information in resource link, including:
Increase revision identification information in static resource link by gulp.
16. server according to claim 15, which is characterized in that the front end file structure server is based on carrying The static resource link structure of revision identification information obtains front end file, including:
It builds to obtain the front end file by Jenkins.
17. server according to claim 11, which is characterized in that the front end file builds server in the static state Before increasing revision identification information in resource link, further include:Backup source code directory.
18. server according to claim 17, which is characterized in that the front-end server is based on carrying version described After the static resource link structure of this identification information obtains front end file, further include:Restore the source code directory of backup.
19. server according to claim 17, which is characterized in that the front end file structure server passes through Jenkins builds to obtain the front end file, including:
Newest code is obtained to source code directory;
It calls the first external scripts of execution that source code directory is backuped to backup directory, and changes the source code directory, for institute The static resource link stated in source code directory increases revision identification information;
The front end file of the source code directory is built, and the code after structure is exported to target directory;
It calls and executes the second external scripts deletion modified source code directory, and the backup directory is changed to source code Catalogue.
20. a kind of page access terminal, including processor and the memory for storing processor-executable instruction, the place Reason device is realized when executing described instruction:
Obtain accessing page request;
In response to the accessing page request, the front end file that any one of claim 1 to 7 is built is transferred from server;
By the front end document presentation transferred to user.
21. a kind of computer readable storage medium is stored thereon with computer instruction, described instruction, which is performed, realizes that right is wanted The step of seeking any one of 1 to 9 the method.
CN201810059264.2A 2018-01-22 2018-01-22 Front end file construction method and server, page access method and terminal Pending CN108280174A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810059264.2A CN108280174A (en) 2018-01-22 2018-01-22 Front end file construction method and server, page access method and terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810059264.2A CN108280174A (en) 2018-01-22 2018-01-22 Front end file construction method and server, page access method and terminal

Publications (1)

Publication Number Publication Date
CN108280174A true CN108280174A (en) 2018-07-13

Family

ID=62804481

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810059264.2A Pending CN108280174A (en) 2018-01-22 2018-01-22 Front end file construction method and server, page access method and terminal

Country Status (1)

Country Link
CN (1) CN108280174A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108965464A (en) * 2018-08-09 2018-12-07 深圳乐信软件技术有限公司 Front end file consistence method, apparatus, server and storage medium
CN109189400A (en) * 2018-08-07 2019-01-11 北京趣拿软件科技有限公司 Program dissemination method and device, storage medium, processor
CN110321122A (en) * 2019-05-24 2019-10-11 中国平安人寿保险股份有限公司 The development approach and relevant device of browser application
CN111970359A (en) * 2020-08-14 2020-11-20 工银科技有限公司 Front-end non-service architecture system based on node
CN113157333A (en) * 2021-03-25 2021-07-23 中国电子科技集团公司第二十九研究所 Novel situation plotting plug-in front end integrated architecture

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103139279A (en) * 2011-12-05 2013-06-05 阿里巴巴集团控股有限公司 File access method and system
US8631394B2 (en) * 2011-01-13 2014-01-14 Facebook, Inc. Static resource processing
CN106489145A (en) * 2015-12-28 2017-03-08 华为技术有限公司 The access method of web site, device and Web site system
CN107357890A (en) * 2017-07-12 2017-11-17 腾讯科技(深圳)有限公司 A kind of web page files processing method, apparatus and system and storage device
CN107402780A (en) * 2017-05-15 2017-11-28 梁亚柳 Semi-automatic more new version software instrument
CN107465707A (en) * 2016-06-03 2017-12-12 阿里巴巴集团控股有限公司 A kind of content refresh method and device of content distributing network

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8631394B2 (en) * 2011-01-13 2014-01-14 Facebook, Inc. Static resource processing
CN103139279A (en) * 2011-12-05 2013-06-05 阿里巴巴集团控股有限公司 File access method and system
CN106489145A (en) * 2015-12-28 2017-03-08 华为技术有限公司 The access method of web site, device and Web site system
CN107465707A (en) * 2016-06-03 2017-12-12 阿里巴巴集团控股有限公司 A kind of content refresh method and device of content distributing network
CN107402780A (en) * 2017-05-15 2017-11-28 梁亚柳 Semi-automatic more new version software instrument
CN107357890A (en) * 2017-07-12 2017-11-17 腾讯科技(深圳)有限公司 A kind of web page files processing method, apparatus and system and storage device

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
沉默术士: "《https://www.cnblogs.com/hutuzhu/p/5276000.html》", 14 March 2016 *

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109189400A (en) * 2018-08-07 2019-01-11 北京趣拿软件科技有限公司 Program dissemination method and device, storage medium, processor
CN108965464A (en) * 2018-08-09 2018-12-07 深圳乐信软件技术有限公司 Front end file consistence method, apparatus, server and storage medium
CN108965464B (en) * 2018-08-09 2021-10-29 深圳乐信软件技术有限公司 Front-end file consistency method, device, server and storage medium
CN110321122A (en) * 2019-05-24 2019-10-11 中国平安人寿保险股份有限公司 The development approach and relevant device of browser application
CN111970359A (en) * 2020-08-14 2020-11-20 工银科技有限公司 Front-end non-service architecture system based on node
CN111970359B (en) * 2020-08-14 2023-01-13 中国工商银行股份有限公司 Front-end non-service architecture system based on node
CN113157333A (en) * 2021-03-25 2021-07-23 中国电子科技集团公司第二十九研究所 Novel situation plotting plug-in front end integrated architecture
CN113157333B (en) * 2021-03-25 2022-09-02 中国电子科技集团公司第二十九研究所 Situation plotting plug-in front-end integrated system

Similar Documents

Publication Publication Date Title
CN108280174A (en) Front end file construction method and server, page access method and terminal
CN106844137B (en) Server monitoring method and device
US10783211B2 (en) Page processing method and device thereof
CN110413288B (en) Application deployment method, device, server and storage medium
CN109766269A (en) Continuous integrating automated testing method, device, equipment and medium
CN105164644A (en) Hook framework
US10084637B2 (en) Automatic task tracking
CN110286922A (en) Using downloading updating method, device, computer equipment and storage medium
CN108123851A (en) The lifetime detection method and device of main and subordinate node synchronization link in distributed system
CN103475744A (en) Resource downloading method, device and system on basis of Web application
CN113641581B (en) Mixed mode mobile application debugging method and system
CN109670126B (en) Cross-border access acceleration method and device
CN113742551A (en) Dynamic data capture method based on script and puppeteer
CN110109684A (en) Block chain node administration agent services installation method, electronic device and storage medium
CN113641582A (en) Mixed-mode mobile application debugging method and system
CN106550002B (en) paas cloud hosting system and method
US20170031667A1 (en) Managing application lifecycles within a federation of distributed software applications
CN112291317B (en) Data downloading method, device, computer equipment and storage medium
CN108008984A (en) A kind of resource file downloading updating method and device
CN114662102A (en) File processing method and device and storage medium
CN112650666B (en) Software testing system, method, device, control equipment and storage medium
JP4532946B2 (en) Application replacement method and program
CN113900925A (en) Test environment building and utilizing method, device, equipment and storage medium
CN107704278A (en) Application upgrade method and apparatus
CN110390064A (en) File updating method, device and system, storage medium and electronic 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
RJ01 Rejection of invention patent application after publication

Application publication date: 20180713

RJ01 Rejection of invention patent application after publication