Project deployment method, device, electronic device, system and storage medium

Through unified configuration file management, uploading and generating the network access address required for project deployment, the problem of cumbersome project deployment, wasted resources and misconfiguration is solved, and efficient project deployment and resource management is achieved.

CN115086162BActive Publication Date: 2024-12-24JINGDONG TECH HLDG CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202110231937.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-03-02
Publication Date
2024-12-24
Estimated Expiration
2041-03-02

AI Technical Summary

Technical Problem

In the business departments of medium and large companies, the project deployment process is cumbersome, resulting in waste of R&D time, waste of resources and misconfiguration.

Method used

Upload the script files and style files of the target project to the first server through a unified configuration file, generate a network access address, and upload the page file to the second server, automatically generate a network access address based on the page identification, simplify the project deployment process and avoid resources Waste and misconfiguration.

Benefits of technology

It simplifies the project deployment process, saves R&D time, reduces the waste of server and domain name resources, avoids configuration errors, and improves project deployment efficiency in different environments.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115086162B_ABST
    Figure CN115086162B_ABST
Patent Text Reader

Abstract

The embodiment of the present invention discloses a project deployment method, device, electronic device, system and storage medium. The project deployment method includes: uploading a script file and a style file of a target project to a first server according to a configuration file to obtain a network access address of the script file and a network access address of the style file; writing the network access address of the script file and the network access address of the style file into an original page file of the target project to obtain a target page file; uploading the target page file to a second server to obtain a page identifier of the target project; generating a network access address for the target project according to the page identifier. The embodiment of the present invention can simplify the project deployment process and save research and development time.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to computer technology, and in particular to a project deployment method, device, electronic equipment, system and storage medium. Background Art

[0002] There are many business departments in medium and large companies, each of which has different businesses, and each business may include multiple projects. In the process of implementing the present invention, the inventor found that there are at least the following problems when deploying projects: (1) Each business department applies for servers, domain names, configures servers, applies for unified login, applies for point-of-care script access, applies for monitoring access, etc., which is a cumbersome process and wastes research and development time; (2) Each business department applies for servers and domain names on its own, and may apply for many servers and domain names, causing a waste of resources for the company; (3) If each business department deploys the project on the same server, since each business department configures the server on its own, configuration errors may occur. Summary of the invention

[0003] Embodiments of the present invention provide a project deployment method, device, electronic device, system and storage medium, which can simplify the project deployment process and save research and development time.

[0004] In a first aspect, an embodiment of the present invention provides a project deployment method, including:

[0005] Upload the script file and the style file of the target project to the first server according to the configuration file, and obtain the network access address of the script file and the network access address of the style file;

[0006] Writing the network access address of the script file and the network access address of the style file into the original page file of the target project to obtain the target page file;

[0007] Uploading the target page file to the second server to obtain the page identifier of the target project;

[0008] A network access address is generated for the target item according to the page identifier.

[0009] Optionally, the configuration file includes a storage path in the first server configured for each project, and uploading the script file and the style file of the target project to the first server according to the configuration file includes:

[0010] Determine a target storage path of the target project in the first server according to the configuration file;

[0011] The script file and the style file of the target project are uploaded to the first server according to the target storage path.

[0012] Optionally, the first server includes a test server, a pre-release server and an online server, and the configuration file includes a storage path in the test server, a storage path in the pre-release server and a storage path in the online server configured for each project.

[0013] Optionally, writing the network access address of the script file and the network access address of the style file into the original page file of the target project to obtain the target page file includes:

[0014] The default access address in the original page file is replaced with the network access address of the script file and the network access address of the style file to obtain the target page file.

[0015] Wherein, when the first server is a test server, the default access address in the original page file is replaced with the network access address of the script file and the network access address of the style file fed back by the test server, so as to obtain the target page file;

[0016] When the first server is a pre-sending server, the default access address in the original page file is replaced with the network access address of the script file and the network access address of the style file fed back by the pre-sending server to obtain the target page file;

[0017] When the first server is an online server, the default access address in the original page file is replaced with the network access address of the script file and the network access address of the style file fed back by the online server to obtain the target page file.

[0018] Optionally, uploading the target page file to the second server includes:

[0019] The source data in the target page file is transferred to the preset interface, and when the preset control of the preset interface is detected to be triggered, the source data is uploaded to the second server. When it is a test environment, the preset interface is the preset interface in the test environment, when it is a pre-release environment, the preset interface is the preset interface in the pre-release environment, and when it is an online environment, the preset interface is the preset interface in the online environment.

[0020] Optionally, before uploading the source data to the second server, the method further includes:

[0021] Performing transcoding processing on the source data;

[0022] The uploading the source data to the second server includes:

[0023] The source data after transcoding is uploaded to the second server.

[0024] Optionally, generating a network access address for the target item according to the page identifier includes:

[0025] Obtaining a host identifier of the second server and a project identifier of the target project;

[0026] The host identifier, the project identifier and the page identifier are combined to generate a network access address for the target project. Wherein, when the first server includes a test server, a pre-release server and an online server, the network access address generated for the target project may include a test access address, a pre-release access address and an online access address.

[0027] Optionally, the method further comprises:

[0028] When it is detected that the network access address of the target project is triggered, obtaining the target page file from the second server;

[0029] Acquire the script file from the first server according to the network access address of the script file in the target page file, and acquire the style file from the first server according to the network access address of the style file in the target page file;

[0030] The target page file, the script file and the style file are parsed and rendered to generate a page to be verified for the target project.

[0031] In a second aspect, an embodiment of the present invention provides a project deployment device, including:

[0032] A first uploading module, used to upload the script file and the style file of the target project to the first server according to the configuration file, and obtain the network access address of the script file and the network access address of the style file;

[0033] A writing module, used for writing the network access address of the script file and the network access address of the style file into the original page file of the target project to obtain a target page file;

[0034] A second uploading module, used to upload the target page file to a second server to obtain a page identifier of the target project;

[0035] A generating module is used to generate a network access address for the target item according to the page identifier.

[0036] In a third aspect, an embodiment of the present invention further provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, a project deployment method as described in any one of the embodiments of the present invention is implemented.

[0037] In a fourth aspect, an embodiment of the present invention further provides a project deployment system, including a first server, a second server, and an electronic device for executing the project deployment method as described in any embodiment of the present invention.

[0038] In a fifth aspect, an embodiment of the present invention further provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements a project deployment method as described in any one of the embodiments of the present invention.

[0039] In an embodiment of the present invention, unified resource management can be used to deploy script files and style files of a target project according to a unified configuration file, write the network access addresses of the deployed script files and style files into the page files of the target project, and upload the page files of the target project to a second server. Based on the page identifier of the target project fed back by the second server, a network access address is automatically generated for the target project, thereby completing the deployment of the target project. During the deployment of the target project, the business department only needs to submit the script files, style files, and page files of the target project, and no longer needs to apply for servers, domain names, configure servers, apply for unified logins, apply for script access, apply for monitoring access, etc., which simplifies the project deployment process, saves R&D time, and allows each business department to focus more on its own business logic processing.

[0040] In addition, the configuration file includes the storage path configured for each project in the first server, that is, all projects are uniformly deployed in the same server, saving server and domain name resources.

[0041] In addition, by configuring the storage path for each project through a unified configuration file, configuration errors are avoided.

[0042] Furthermore, the first server includes a test server, a pre-release server and an online server, that is, the test environment, the pre-release environment and the online environment can all adopt the project deployment method provided by the embodiment of the present invention to deploy the target project, thereby eliminating the problem of cumbersome project deployment in different environments from the root and saving labor costs. BRIEF DESCRIPTION OF THE DRAWINGS

[0043] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings required for use in the embodiments are briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present invention and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without creative work.

[0044] Figure 1 It is a flowchart of a project deployment method provided by an embodiment of the present invention.

[0045] Figure 2 It is a schematic diagram of the effect of the project deployment method provided by an embodiment of the present invention.

[0046] Figure 3 It is another flowchart of the project deployment method provided by an embodiment of the present invention.

[0047] Figure 4 It is a schematic diagram of an interface of a project deployment method provided by an embodiment of the present invention.

[0048] Figure 5 It is another interface schematic diagram of the project deployment method provided by an embodiment of the present invention.

[0049] Figure 6 It is a structural schematic diagram of a project deployment device provided by an embodiment of the present invention.

[0050] Figure 7 It is a structural diagram of a project deployment system provided by an embodiment of the present invention.

[0051] Figure 8 It is a structural schematic diagram of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0052] The present invention will be further described in detail below in conjunction with the accompanying drawings and embodiments. It is to be understood that the specific embodiments described herein are only used to explain the present invention, rather than to limit the present invention. It should also be noted that, for ease of description, only parts related to the present invention, rather than all structures, are shown in the accompanying drawings.

[0053] Figure 1A flowchart of a project deployment method provided in an embodiment of the present invention is provided. The method can be executed by a project deployment device provided in an embodiment of the present invention, and the device can be implemented in software and / or hardware. In a specific embodiment, the device can be integrated into an electronic device, such as a personal computer (PC), a tablet computer, a laptop computer, a desktop computer, and other electronic devices. The following embodiments will be described by taking the device integrated into an electronic device as an example, and a visualization platform can be installed in the electronic device. Reference Figure 1 , the method may specifically include the following steps:

[0054] Step 101: upload the script file and the style file of the target project to the first server according to the configuration file, and obtain the network access address of the script file and the network access address of the style file.

[0055] For example, the configuration file may include a storage path configured for each project. The storage path configured for each project may be in the same server (ie, the first server). The configuration file may be pre-configured by a developer and saved in the visualization platform.

[0056] In a specific implementation, after the business department has developed the page (Hyper Text Markup Language, HTML) code, script (Java Script, JS) code, and style (Cascading Style Sheets, CSS) code for the target project, the page code, script code, and style code can be packaged into a page file (HTML file), a script file (JS file), and a style file (CSS file) respectively through a preset command, such as the npm run build command. The visualization platform in the electronic device obtains the script file and style file of the packaged target project, obtains the storage path of the target project according to the configuration file, and uploads the script file and style file of the target project to the first server according to the storage path of the target project.

[0057] The first server can be a server built using node, and the visualization platform can use the node service interface to call the deploy.js script to upload the script files and style files of the target project to the first server. After uploading the script files and style files of the target project to the first server, the first server will store the script files and style files of the target project, and after storage, feedback the network access address of the script file and the network access address of the style file, which can be understood as an absolute path address. The network access address of the script file and the network access address of the sample file can both be composed of the host identifier of the first server, the project identifier of the target project, the storage path, the random code, etc.

[0058] Step 102, write the network access address of the script file and the network access address of the style file into the original page file of the target project to obtain the target page file.

[0059] In the example, the default access address in the original page file can be replaced with the network access address of the script file and the network access address of the style file to obtain the target page file. The default access address in the original page file can be the local access address of the script file and the style file, which is a relative path address, that is, in step 102, the relative path address is replaced with an absolute path address.

[0060] Step 103: Upload the target page file to the second server to obtain the page identifier of the target project.

[0061] For example, the second server may be a background server of the visualization platform. Specifically, the source data in the target page file may be transferred to the preset interface of the visualization platform according to the user operation, and when the preset control of the preset interface is detected to be triggered, the source data may be uploaded to the second server.

[0062] In a specific implementation, since the source data includes special characters such as " / ", in order to avoid inconsistency with the actual data when the second server subsequently stores and reads the source data, the source data can be transcoded and uploaded to the second server. Specifically, encodeURIComponent can be used to transcode the source data. After uploading the transcoded source data to the second server, the second server will store the source data and feedback the page identifier pagekey of the target project after storage.

[0063] Step 104: Generate a network access address for the target project according to the page identifier.

[0064] Specifically, the host identifier of the second server and the project identifier of the target project can be obtained, and the host identifier, project identifier and page identifier are combined to generate a network access address for the target project. In a specific embodiment, the network access address generated for the target project can be: host identifier + project identifier + page identifier. Among them, the host identifier can be the host name of the second server, and the project identifier can include the business name, project name, project attributes, etc. of the business to which the project belongs. In a specific implementation, the domain name in the host identifier of the second server and the host identifier of the first server can be the same, thereby saving domain name resources.

[0065] For example, the network access address generated for the target project may be a uniform resource locator (URL) link represented by characters, or may be a URL link represented by a barcode or a QR code.

[0066] Furthermore, business logic verification can be performed based on the network access address generated for the target project, as follows:

[0067] Monitor whether the network access address of the target project is triggered. When it is detected that the network access address of the target project is triggered, obtain the target page file from the second server; obtain the script file from the first server according to the network access address of the script file in the target page file, and obtain the style file from the first server according to the network access address of the style file in the target page file; parse and render the target page file, script file and style file to generate a page to be verified for the target project.

[0068] Specifically, for example, the network access address generated for the target project can be triggered by a click operation on the visualization platform of the electronic device. After the triggering, the electronic device can obtain the script file from the first server, and obtain the style file from the first server according to the network access address of the style file in the target page file, and then parse and render the target page file, script file and style file through the HTML parser of the visualization page, and generate the page to be verified for the target project on the visualization platform. Alternatively, the network access address generated for the target project can be obtained through other devices (for example, by scanning), and the network access address generated for the target project can be triggered on other devices. After the triggering, the page to be verified for the target project is generated on other devices, and the business logic verification of the target project can be realized by viewing the page to be verified.

[0069] The following is an example, for example Figure 2As shown, the target project is multiple projects (H5 project 1-1, H5 project 1-2, H5 project 1-3...) of multiple business parties (business party 1, business party 2, business party 3...). After packaging to obtain the script files and style files of each project, the script files and style files of each project can be uploaded to the specified location of the first server according to a unified configuration file to obtain the network access address of the script file of each project and the network access address of the style file, and then the network access address of the script file of each project and the network access address of the style file are written into the original page file of the corresponding project to obtain the target page file of the corresponding project; the source data in the target page file of any project is imported into the visualization platform and submitted to the second server, and a network access address is generated for the project according to the page identifier fed back by the second server for the project. By analogy, a network access address can be generated for each project. In the network access addresses generated for different projects, the domain name in the host identifier is the same, and the project identifier and the page identifier are different, thereby saving domain name and server resources.

[0070] In an embodiment of the present invention, unified resource management can be used to deploy script files and style files of a target project according to a unified configuration file, write the network access addresses of the deployed script files and style files into the page files of the target project, and upload the page files of the target project to a second server. Based on the page identifier of the target project fed back by the second server, a network access address is automatically generated for the target project, thereby completing the deployment of the target project. During the deployment of the target project, the business department only needs to submit the script files, style files, and page files of the target project, and no longer needs to apply for servers, domain names, configure servers, apply for unified logins, apply for script access, apply for monitoring access, etc., which simplifies the project deployment process, saves R&D time, and allows each business department to focus more on its own business logic processing.

[0071] In addition, the configuration file includes the storage path configured for each project in the first server, that is, each project is uniformly deployed in the same server, saving server and domain name resources, and deploying each project through a unified configuration file avoids configuration errors.

[0072] In a specific embodiment, the first server may include a test server, a pre-release server and an online server, that is, the method provided by the embodiment of the present invention can be applied to the test environment, the pre-release environment and the online environment for project deployment. Among them. The test environment is an environment simulated by some tools and data, which is close to the real user usage environment; the pre-release environment is the last test before the official release, and all functions and configurations, and the database are highly similar to the online environment. Only the functional code that needs to be launched this time is allowed. After the tester confirms that there is no problem with the code after the test case is tested in the test environment, it is submitted to the pre-release environment for testing; the online environment is the environment accessed by real users. Let's take the deployment of the target project in the pre-release environment as an example. Figure 3 , the project deployment method may include the following steps:

[0073] Step 201, determining a target storage path of a target project in a pre-release server according to a configuration file.

[0074] Specifically, the configuration file may include the storage path configured for each project in the pre-release server. The configuration file can be pre-configured by the developer and saved in the visualization platform. After obtaining the script files and style files of the target project packaged by the business department, the visualization platform can determine the target storage path of the target project in the pre-release server according to the configuration file.

[0075] Step 202: upload the script file and the style file of the target project to the pre-send server according to the target storage path, and obtain the network access address of the script file and the network access address of the style file.

[0076] After storing the script file and style file of the target project, the pre-release server will feedback the network access address of the script file and the network access address of the style file. The network access address of the script file and the network access address of the style file can be understood as an absolute path address.

[0077] Step 203: Replace the default access address in the original page file of the target project with the network access address of the script file and the network access address of the style file to obtain the target page file.

[0078] In the example, the default access address in the original page file can be replaced with the network access address of the script file and the network access address of the style file to obtain the target page file. The default access address in the original page file can be the local access address of the script file and the style file, which is a relative path address. Here, it can be understood as replacing the relative path address with an absolute path address.

[0079] Step 204: transfer the source data in the target page file to the preset interface, and transcode the source data when it is detected that the preset control of the preset interface is triggered.

[0080] Specifically, the source data in the target page file can be transferred to the preset interface of the visualization platform in the pre-release state according to the user operation. In a specific embodiment, the preset interface of the visualization platform in the pre-release state can be as follows: Figure 4 As shown, when it is detected that a preset control (such as a "Confirm Creation" control) of a preset interface is triggered, the source data can be transcoded and the transcoded source data can be uploaded to a second server to avoid inconsistencies with actual data.

[0081] Step 205: Upload the transcoded source data to the second server to obtain a page identifier of the target project.

[0082] The second server stores the source data and feeds back the page identifier pagekey of the target item after storing it.

[0083] Step 206: Obtain the host identifier of the second server and the project identifier of the target project.

[0084] For example, the host identifier may be the host name of the second server, and the project identifier may include a business name of the business to which the project belongs, a project name, project attributes, and the like.

[0085] Step 207: Combine the host identifier, the project identifier and the page identifier to generate a network access address for the target project.

[0086] In a specific embodiment, the network access address generated for the target project may be: host identifier + project identifier + page identifier. Figure 5 As shown, the network access address generated for the target project can be a uniform resource locator (URL) link represented by characters, or a URL link represented by a barcode or a QR code. Specifically, in the pre-release state, the network access address generated for the target project can be a pre-release (show-pre) access address.

[0087] Step 208: When it is detected that the network access address of the target project is triggered, the target page file is obtained from the second server.

[0088] For example, the network access address generated for the target project can be triggered by a click operation on the visualization platform on the electronic device.

[0089] Step 209: acquiring a script file from the pre-sending server according to the network access address of the script file in the target page file, and acquiring a style file from the pre-sending server according to the network access address of the style file in the target page file.

[0090] Step 210: parse and render the target page file, script file, and style file to generate a page to be verified for the target project.

[0091] For example, the HTML parser of the visualization page can be used to parse and render the target page file, script file, and style file, and generate a page to be verified for the target project on the visualization platform.

[0092] It should be noted that this embodiment is only described by taking the deployment of the target project in the pre-release environment as an example. The method for deploying the target project in the test environment and the online environment is similar to the method for deploying the target project in the pre-release environment. In the test environment, the script file and the style file of the target project are uploaded to the test server. The original page file of the target project is written with the network access address of the script file and the network access address of the style file of the target project fed back by the test server. When uploading the source data to the second server, the source data is transferred to the preset interface of the visualization platform in the test state, and the network access address finally generated for the target project is the test access address; in the online environment, the script file and the style file of the target project are uploaded to the online server. The original page file of the target project is written with the network access address of the script file and the network access address of the style file of the target project fed back by the online server. When uploading the source data to the second server, the source data is transferred to the preset interface of the visualization platform in the online state, and the network access address finally generated for the target project is the online access address. For other details, please refer to the process of deploying the target project in the pre-release environment, which will not be repeated here.

[0093] It should be noted that the interface diagram shown in the embodiment of the present disclosure is intended to illustrate the project deployment method, and the content presented in the specific interface (including but not limited to text, pictures, etc.) does not constitute a limitation on the solution.

[0094] In an embodiment of the present invention, unified resource management can be used to deploy script files and style files of a target project according to a unified configuration file, write the network access addresses of the deployed script files and style files into the page files of the target project, and upload the page files of the target project to a second server. Based on the page identifier of the target project fed back by the second server, a network access address is automatically generated for the target project, thereby completing the deployment of the target project. During the deployment of the target project, the business department only needs to submit the script files, style files, and page files of the target project, and no longer needs to apply for servers, domain names, configure servers, apply for unified logins, apply for script access, apply for monitoring access, etc., which simplifies the project deployment process, saves R&D time, and allows each business department to focus more on its own business logic processing.

[0095] In addition, the configuration file includes the storage path configured for each project in the first server, that is, each project is uniformly deployed in the same server, saving server and domain name resources, and deploying each project through a unified configuration file avoids configuration errors.

[0096] Furthermore, the first server includes a test server, a pre-release server and an online server, that is, the test environment, the pre-release environment and the online environment can all adopt the project deployment method provided by the embodiment of the present invention to deploy the target project, thereby eliminating the problem of cumbersome project deployment in different environments from the root and saving labor costs.

[0097] Figure 6 1 is a structural diagram of a project deployment device provided by an embodiment of the present invention, and the device is suitable for executing the project deployment method provided by an embodiment of the present invention. Figure 6 As shown, the device may specifically include:

[0098] The first uploading module 301 is used to upload the script file and the style file of the target project to the first server according to the configuration file, and obtain the network access address of the script file and the network access address of the style file;

[0099] A writing module 302 is used to write the network access address of the script file and the network access address of the style file into the original page file of the target project to obtain a target page file;

[0100] The second uploading module 303 is used to upload the target page file to the second server to obtain the page identifier of the target project;

[0101] The generating module 304 is used to generate a network access address for the target item according to the page identifier.

[0102] In one embodiment, the configuration file includes a storage path in the first server configured for each project, and the first uploading module 301 uploads the script file and the style file of the target project to the first server according to the configuration file, including:

[0103] Determine a target storage path of the target project in the first server according to the configuration file;

[0104] The script file and the style file of the target project are uploaded to the first server according to the target storage path.

[0105] In one embodiment, the first server includes a test server, a pre-release server and an online server.

[0106] In one embodiment, the writing module 302 writes the network access address of the script file and the network access address of the style file into the original page file of the target project to obtain the target page file, including:

[0107] The default access address in the original page file is replaced with the network access address of the script file and the network access address of the style file to obtain the target page file.

[0108] In one embodiment, the second uploading module 303 uploads the target page file to the second server, including:

[0109] The source data in the target page file is transferred to a preset interface, and when it is detected that a preset control of the preset interface is triggered, the source data is uploaded to the second server.

[0110] In one embodiment, the second uploading module 303 is further used to:

[0111] Performing transcoding processing on the source data;

[0112] The source data after transcoding is uploaded to the second server.

[0113] In one embodiment, the generating module 304 generates a network access address for the target item according to the page identifier, including:

[0114] Obtaining a host identifier of the second server and a project identifier of the target project;

[0115] The host identifier, the project identifier and the page identifier are combined to generate a network access address for the target project.

[0116] In one embodiment, the device further comprises a verification module;

[0117] The verification module is used to obtain the target page file from the second server when it is detected that the network access address of the target project is triggered; obtain the script file from the first server according to the network access address of the script file in the target page file, and obtain the style file from the first server according to the network access address of the style file in the target page file; parse and render the target page file, the script file and the style file to generate a page to be verified for the target project.

[0118] Those skilled in the art can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional modules is used as an example for illustration. In actual applications, the above-mentioned functions can be assigned to different functional modules as needed, that is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above. The specific working process of the functional modules described above can refer to the corresponding process in the aforementioned method embodiment, and will not be repeated here.

[0119] In an embodiment of the present invention, unified resource management can be used to deploy script files and style files of a target project according to a unified configuration file, write the network access addresses of the deployed script files and style files into the page files of the target project, and upload the page files of the target project to a second server. Based on the page identifier of the target project fed back by the second server, a network access address is automatically generated for the target project, thereby completing the deployment of the target project. During the deployment of the target project, the business department only needs to submit the script files, style files, and page files of the target project, and no longer needs to apply for servers, domain names, configure servers, apply for unified logins, apply for script access, apply for monitoring access, etc., which simplifies the project deployment process, saves R&D time, and allows each business department to focus more on its own business logic processing.

[0120] In addition, the configuration file includes the storage path configured for each project in the first server, that is, each project is uniformly deployed in the same server, saving server and domain name resources, and deploying each project through a unified configuration file avoids configuration errors.

[0121] Furthermore, the first server includes a test server, a pre-release server and an online server, that is, the test environment, the pre-release environment and the online environment can all adopt the project deployment method provided by the embodiment of the present invention to deploy the target project, thereby eliminating the problem of cumbersome project deployment in different environments from the root and saving labor costs.

[0122] An embodiment of the present invention further provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, the project configuration method provided in any of the above embodiments is implemented.

[0123] An embodiment of the present invention further provides a computer-readable medium on which a computer program is stored. When the program is executed by a processor, the project configuration method provided by any of the above embodiments is implemented.

[0124] The embodiment of the present invention also provides a project configuration system, such as Figure 7 As shown, it includes a first server 401, a second server 402, and an electronic device 403 for executing the project deployment method described in any embodiment of the present invention.

[0125] The first server 401 may include a test server 4011, a pre-release server 4012, and an online server 4013. The interaction between the devices can refer to the description of the previous embodiment, which will not be repeated here.

[0126] Face reference Figure 8 , which shows a schematic diagram of the structure of a computer system 500 of an electronic device suitable for implementing an embodiment of the present invention. Figure 8 The electronic device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present invention.

[0127] like Figure 8 As shown, the computer system 500 includes a central processing unit (CPU) 501, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 502 or a program loaded from a storage part 508 into a random access memory (RAM) 503. In the RAM 503, various programs and data required for the operation of the system 500 are also stored. The CPU 501, the ROM 502, and the RAM 503 are connected to each other via a bus 504. An input / output (I / O) interface 505 is also connected to the bus 504.

[0128] The following components are connected to the I / O interface 505: an input section 506 including a keyboard, a mouse, etc.; an output section 507 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker, etc.; a storage section 508 including a hard disk, etc.; and a communication section 509 including a network interface card such as a LAN card, a modem, etc. The communication section 509 performs communication processing via a network such as the Internet. A drive 510 is also connected to the I / O interface 505 as needed. A removable medium 511, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 510 as needed, so that a computer program read therefrom is installed into the storage section 508 as needed.

[0129] In particular, according to the embodiments disclosed in the present invention, the process described above with reference to the flowchart can be implemented as a computer software program. For example, the embodiments disclosed in the present invention include a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from the network through the communication part 509, and / or installed from the removable medium 511. When the computer program is executed by the central processing unit (CPU) 501, the above-mentioned functions defined in the system of the present invention are executed.

[0130] It should be noted that the computer-readable medium shown in the present invention may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present invention, a computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, device or device. In the present invention, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, which carries a computer-readable program code. This propagated data signal may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. Computer-readable signal media may also be any computer-readable medium other than computer-readable storage media, which may send, propagate or transmit a program for use by or in conjunction with an instruction execution system, apparatus or device. The program code contained on the computer-readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wire, optical cable, RF, etc., or any suitable combination of the above.

[0131] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present invention. In this regard, each box in the flow chart or block diagram can represent a module, a program segment, or a part of a code, and the above-mentioned module, program segment, or a part of a code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram or flow chart, and the combination of the boxes in the block diagram or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0132] The modules and / or units involved in the embodiments of the present invention may be implemented in software or hardware. The modules and / or units described may also be set in a processor. For example, they may be described as follows: a processor includes a first upload module, a write module, a second upload module, and a generation module. The names of these modules do not, in some cases, constitute limitations on the modules themselves.

[0133] As another aspect, the present invention also provides a computer-readable medium, which may be included in the device described in the above embodiment; or it may exist independently without being assembled into the device. The above computer-readable medium carries one or more programs, and when the above one or more programs are executed by a device, the device includes: uploading the script file and style file of the target project to the first server according to the configuration file, obtaining the network access address of the script file and the network access address of the style file; writing the network access address of the script file and the network access address of the style file into the original page file of the target project, obtaining the target page file; uploading the target page file to the second server, obtaining the page identifier of the target project; generating a network access address for the target project according to the page identifier.

[0134] According to the technical solution of the embodiment of the present invention, it is possible to unify resource management, deploy the script files and style files of the target project according to a unified configuration file, write the network access addresses of the deployed script files and style files into the page files of the target project, and upload the page files of the target project to the second server. According to the page identifier of the target project fed back by the second server, a network access address is automatically generated for the target project, thereby completing the deployment of the target project. During the deployment of the target project, the business department only needs to submit the script files, style files and page files of the target project, and no longer needs to apply for servers, domain names, configure servers, apply for unified logins, apply for script access, apply for monitoring access, etc., which simplifies the project deployment process, saves R&D time, and allows each business department to focus more on its own business logic processing.

[0135] In addition, the configuration file includes the storage path configured for each project in the first server, that is, each project is uniformly deployed in the same server, saving server and domain name resources, and deploying each project through a unified configuration file avoids configuration errors.

[0136] Furthermore, the first server includes a test server, a pre-release server and an online server, that is, the test environment, the pre-release environment and the online environment can all adopt the project deployment method provided by the embodiment of the present invention to deploy the target project, thereby eliminating the problem of cumbersome project deployment in different environments from the root and saving labor costs.

[0137] The above specific implementations do not constitute a limitation on the protection scope of the present invention. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions may occur depending on design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.

Claims

1. A project deployment method, characterized in that: include: Uploading the script file and the style file of the target project to the first server according to the configuration file, and obtaining the network access address of the script file and the network access address of the style file; wherein the configuration file includes the storage path configured for each project in the first server; Writing the network access address of the script file and the network access address of the style file into the original page file of the target project to obtain the target page file; Uploading the target page file to the second server to obtain the page identifier of the target project; The host identifier of the second server and the project identifier of the target project are obtained, and the host identifier, the project identifier and the page identifier are combined into a network access address of the target project, wherein the host identifier of the second server is the same as the domain name in the host identifier of the first server.

2. The project deployment method according to claim 1, characterized in that: The step of uploading the script file and the style file of the target project to the first server according to the configuration file includes: Determine a target storage path of the target project in the first server according to the configuration file; The script file and the style file of the target project are uploaded to the first server according to the target storage path.

3. The project deployment method according to claim 2, characterized in that: The first server includes a test server, a pre-release server and an online server.

4. The project deployment method according to claim 1, characterized in that: The step of writing the network access address of the script file and the network access address of the style file into the original page file of the target project to obtain the target page file comprises: The default access address in the original page file is replaced with the network access address of the script file and the network access address of the style file to obtain the target page file.

5. The project deployment method according to claim 1, characterized in that: The uploading of the target page file to the second server includes: The source data in the target page file is transferred to a preset interface, and when it is detected that a preset control of the preset interface is triggered, the source data is uploaded to the second server.

6. The project deployment method according to claim 5, characterized in that: Before uploading the source data to the second server, the method further includes: Performing transcoding processing on the source data; The uploading the source data to the second server includes: The source data after transcoding is uploaded to the second server.

7. The project deployment method according to any one of claims 1 to 6, characterized in that: The method further comprises: When it is detected that the network access address of the target project is triggered, obtaining the target page file from the second server; Acquire the script file from the first server according to the network access address of the script file in the target page file, and acquire the style file from the first server according to the network access address of the style file in the target page file; The target page file, the script file and the style file are parsed and rendered to generate a page to be verified for the target project.

8. A project deployment device, characterized in that: include: A first uploading module, configured to upload the script file and the style file of the target project to the first server according to the configuration file, and obtain the network access address of the script file and the network access address of the style file; wherein the configuration file includes the storage path configured for each project in the first server; A writing module, used for writing the network access address of the script file and the network access address of the style file into the original page file of the target project to obtain a target page file; A second uploading module, used to upload the target page file to a second server to obtain a page identifier of the target project; A generation module is used to obtain the host identifier of the second server and the project identifier of the target project, and combine the host identifier, the project identifier and the page identifier into the network access address of the target project. The host identifier of the second server is the same as the domain name in the host identifier of the first server.

9. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein: When the processor executes the program, the project deployment method as described in any one of claims 1 to 7 is implemented.

10. A project deployment system, characterized in that: It comprises a first server, a second server and an electronic device for executing the project deployment method as described in any one of claims 1 to 7.

11. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the project deployment method as described in any one of claims 1 to 7 is implemented.