Flask project automatic deployment method, system, equipment and medium
The steps of integrating the Flask project into the uwsgi server through automated deployment methods solve the problem of cumbersome and errors in deployment, and realize an efficient and reliable project deployment process, which is suitable for Flask projects in the Web development field.
Patent Information
- Application Number
- CN202510415762.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-04-03
- Publication Date
- 2025-07-25
AI Technical Summary
In the prior art, the process of deploying Flask projects to the uwsgi server is cumbersome, time-consuming and labor-intensive, prone to errors, and difficult to implement for non-professional personnel, affecting development efficiency and project deployment time cost.
It provides a method of automatic deployment of Flask projects, which can be integrated into one-click script operations by detecting the server operating system type, installing the development environment, verifying the project path and dependency management files.
Improve deployment efficiency, lower deployment thresholds, enhance deployment reliability and customizability, save developers time and energy, ensure deployment accuracy and efficient project launch.
Smart Images

Figure CN120371325A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of Web development, and particularly to an automated deployment method, system, device and medium for Flask projects. Background Art
[0002] In the current field of Web application development, Flask, as a lightweight and easy-to-use Python Web framework, is widely used in the development of various projects due to its simplicity, flexibility and scalability; to improve the performance of Web applications, uwsgi, as a high-performance Web server, can efficiently cooperate with the Flask framework to achieve deployment from the development environment to the production environment; however, the current process of deploying a Flask project to a uwsgi server is relatively cumbersome, involving multiple steps, including installing the uwsgi and Flask frameworks, configuring uwsgi parameters, and preparing Flask project files, etc.; these steps not only consume time and effort, but also for developers who are not familiar with the deployment process, it is easy to cause deployment failures due to problems such as incorrect configuration parameters or incorrect project file path settings, seriously affecting the development efficiency and the time cost of project deployment, increasing the technical threshold, and being unfavorable to the rapid iteration and deployment of projects.
[0003] Specifically, the process of deploying a Flask project to a uwsgi server in the prior art mainly relies on manual operations, including installing relevant dependencies (such as uwsgi packages, Python environments) and configuring uwsgi parameters, etc., and this solution has the following disadvantages: (1) Manual operations are greatly affected by environmental factors and consume a long time, resulting in low deployment efficiency.
[0004] (2) Professional practitioners and relevant knowledge and skills are required to complete the deployment, which is difficult to implement for non-professionals.
[0005] (3) During the process of manually installing dependencies and configuring parameters, errors are prone to occur, and additional time is required for error analysis and resolution. Summary of the Invention
[0006] The purpose of the present invention is to provide an automated deployment method, system, device and medium for Flask projects, so as to solve all or one of the above problems existing in the prior art.
[0007] To solve the above technical problems, the specific technical solution of the present invention is as follows: On the one hand, the present invention provides an automated deployment method for Flask projects, including the following steps: Environment detection and installation step: Detect the server operating system type, install the development environment according to the server operating system type, and install the application framework and application server after the development environment is installed, and monitor the installation status of the application framework and application server in real time; Project preparation steps: Obtain the Flask project path input by the user, verify the validity of the Flask project path and check the existence of the dependency management file, and install the dependency packages according to the existence of the dependency management file; Configuration and startup steps: Enter the project directory, generate an application server configuration file under the project directory, and configure multiple configuration items based on the application server configuration file.
[0008] Furthermore, the installation of the development environment according to the server operating system type includes: In response to the server operating system type being CentOS, use the package management tool yum and execute the command yum install python-devel -y; In response to the server operating system type being Ubuntu, use the package management tool apt-get and execute the command sudo apt-get install python3-dev -y.
[0009] Furthermore, the installation of the application framework and application server after the development environment is installed includes: Call the pip tool to execute the command pip install uwsgi to install the uwsgi application server; Call the pip tool to execute the command pip install flask to install the Flask application framework.
[0010] Furthermore, the real-time monitoring of the installation status of the application framework and application server includes: Real-time monitor the installation status of the uwsgi application server and the Flask application framework; In response to the installation failure caused by network connection problems, output detailed error information and prompt to check the network settings; In response to the installation failure caused by missing dependency packages, output detailed error information and output the solution commands for installing the dependency packages.
[0011] Furthermore, the validity verification of the Flask project path and the check of the existence of the dependency management file include: Validity verification: Ensure that the Flask project path exists and that the Flask project path points to the correct Flask project directory; Check the dependency management file: Check whether there is a requirements.txt file in the project.
[0012] Furthermore, the installation of dependency packages according to the existence of the dependency management file includes: In response to the existence of the requirements.txt file in the project, use commands to install other dependency packages required for the project to ensure the integrity of the project running environment.
[0013] Furthermore, the configuration of multiple configuration items based on the application server configuration file includes: In the application server configuration file, perform the following configurations: Configure the listening address and port, configure the wsgi-file, configure the callable, add basic configuration options in the uwsgi.ini file, and set workers and threads; The basic configuration items include: master=true: Enable the master process; vhost=true: Enable the virtual host function; cache=true: Enable caching to improve performance; lazy-apps=true: Load applications in each worker; enable-threads=true: Allow starting new threads in the program to improve concurrent processing ability; The setting of workers and threads includes: According to the server resource situation, set the number of workers working processes and the number of threads threads; Dynamically adjust threads according to the I / O characteristics of the project; Add configuration items workers=[reasonable value] and threads=[reasonable value] in the uwsgi.ini file.
[0014] On the other hand, the present invention also provides a Flask project automated deployment system, including: An environment detection and installation module for: detecting the server operating system type, installing the development environment according to the server operating system type, and installing the application framework and application server after the installation of the development environment, and real-time monitoring the installation status of the application framework and application server; A project preparation module, configured to: obtain the Flask project path input by the user, verify the validity of the Flask project path and check the existence of the dependency management file, and install dependency packages according to the existence of the dependency management file; A configuration and startup module, configured to: enter the project directory, generate an application server configuration file in the project directory, and configure multiple configuration items based on the application server configuration file.
[0015] On the other hand, the present invention also provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the steps of the Flask project automated deployment method are implemented.
[0016] On the other hand, the present invention also provides a computer device, which includes a processor, a communication interface, a memory, and a communication bus. Among them, the processor, the communication interface, and the memory complete communication with each other through the communication bus; wherein: The memory is used to store a computer program; The processor is configured to execute the steps of the Flask project automated deployment method by running the program stored on the memory.
[0017] The beneficial effects of the technical solution of the present invention are: 1. The Flask project automated deployment method of the present invention can optimize the Flask project deployment process by using shell scripts, improve the deployment efficiency, lower the deployment threshold, enhance the deployment reliability and high customizability; ultimately, it not only saves the time and effort of developers, but also reduces the deployment cost, making project development and online more efficient, convenient and reliable.
[0018] 2. The Flask project automated deployment method described in the present invention specifically integrates multiple originally cumbersome deployment steps into one script through one-key operation, greatly saving the time and effort of developers and significantly improving the deployment efficiency; the deployment threshold is reduced through the script, enabling even non-professionals who are not familiar with the uwsgi deployment process to easily complete project deployment by simply running the script and following the prompts; during the execution of the script, strict detection and verification are carried out on each link to ensure the accuracy of environment installation, the integrity of project files, and the uwsgi configuration parameters, thereby enhancing the reliability of the deployment and effectively reducing project online delays or running failures caused by deployment errors; in addition, the script of this method also has strong customizability, and users can flexibly adjust the key configuration items of uwsgi according to the actual project requirements and server environment, making the deployment process more in line with the actual situation of the project, further improving the performance and stability of the project operation, making up for the deficiencies of the prior art, and having high application value.
[0019] 3. The Flask project automated deployment system described in the present invention can realize the Flask project automated deployment method described in the present invention through the mutual cooperation of system modules.
[0020] 4. The computer-readable storage medium described in the present invention can guide the system modules to cooperate, thereby realizing the Flask project automated deployment method described in the present invention, and the computer-readable storage medium described in the present invention also effectively improves the operability of the Flask project automated deployment method.
[0021] 5. The computer device described in the present invention can store and execute the computer-readable storage medium, thereby realizing the Flask project automated deployment method described in the present invention. BRIEF DESCRIPTION OF THE DRAWINGS
[0022] In order to more clearly illustrate the specific embodiments of the present invention or the technical solutions in the prior art, the following will briefly introduce the drawings required for use in the description of the specific embodiments or the prior art. Obviously, the drawings in the following description are some embodiments of the present invention. For those of ordinary skill in the art, other drawings can be obtained based on these drawings without creative efforts.
[0023] Figure 1 It is a partial code schematic diagram of step S102 in the Flask project automated deployment method described in Embodiment 1 of the present invention; Figure 2 It is a partial code schematic diagram of step S104 in the Flask project automated deployment method described in Embodiment 1 of the present invention; Figure 3It is a partial code schematic diagram of step S307 in the Flask project automated deployment method described in Embodiment 1 of the present invention; Figure 4 It is a page schematic diagram of returning a successful page in the Flask project automated deployment method described in Embodiment 1 of the present invention; Figure 5 It is a process schematic diagram of the Flask project automated deployment method described in Embodiment 1 of the present invention; Figure 6 It is an architecture schematic diagram of the Flask project automated deployment system described in Embodiment 2 of the present invention; Figure 7 It is a structure schematic diagram of the computer device described in Embodiment 4 of the present invention; The label descriptions in the attached drawings are as follows: 1501, processor; 1502, communication interface; 1503, memory; 1504, communication bus. Specific embodiments
[0024] The following elaborates on the preferred embodiments of the present invention in conjunction with the attached drawings, so that the advantages and features of the present invention can be more easily understood by those skilled in the art, thereby making a clearer and more definite definition of the protection scope of the present invention.
[0025] In the description of the present invention, it should be noted that the embodiments described in the present invention are part of the embodiments of the present invention, rather than all the embodiments; all other embodiments obtained by those of ordinary skill in the art based on the embodiments in the present invention without creative efforts fall within the protection scope of the present invention.
[0026] The terms "first", "second", etc. in the specification, claims and above-mentioned attached drawings of this article are used to distinguish similar objects, and do not have to be used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged under appropriate circumstances, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusion. For example, a process, method, device, product or equipment that includes a series of steps or units does not necessarily have to be limited to those steps or units clearly listed, but may include other steps or units not clearly listed or inherent to these processes, methods, products or equipment. Embodiment 1
[0027] This embodiment provides a Flask project automated deployment method, as Figures 1 to 5 shown, including the following steps: S100, environment detection and installation step: S101. Detect the server operating system type, including: Detect the server operating system type, supporting common Linux distributions such as CentOS, Ubuntu, etc.
[0028] S102. Install the Python development environment according to the operating system type, as shown in the appendix Figure 1 as follows: i) If the operating system is CentOS, use the package management tool yum and execute the command yum install python-devel-y.
[0029] ii) If the operating system is Ubuntu, use the package management tool apt-get and execute the command sudo apt-get install python3-dev-y.
[0030] S103. Use the pip tool to install uwsgi and Flask, including: Execute the commands pip install uwsgi and pip install flask.
[0031] S104. Monitor the installation status in real time and handle installation failure situations, as shown in the appendix Figure 2 as follows: i) The script monitors the installation status of uwsgi and Flask in real time.
[0032] ii) Handle network connection problems: If the installation fails due to network connection problems, output detailed error messages and prompt to check the network settings.
[0033] iii) Handle the problem of missing dependent packages: If the installation fails due to missing dependent packages, output detailed error messages and give specific solution commands for installing the dependent packages.
[0034] S200. Project preparation steps: S201. Receive user input, including: The script receives the Flask project path input by the user.
[0035] S202. Verify the validity of the project path, including: i) Verify the validity of the received project path.
[0036] ii) Ensure that the path exists.
[0037] iii) Ensure that the path points to the correct Flask project directory.
[0038] S203. Check the requirements.txt file, including: Check whether there is a file in the project.
[0039] S204. Install dependency packages, including: If there is a requirements.txt file in the project, use the command to install other dependency packages required by the project, thereby ensuring the integrity of the project running environment.
[0040] S300. uwsgi configuration and startup steps: S301. Enter the project directory, including: Ensure that the current working directory is the project directory, or switch to the specified project directory in the script.
[0041] S302. Automatically generate the uwsgi.ini configuration file, including: Create a configuration file named uwsgi.ini in the project directory.
[0042] S303. Configure the listening address and port, including: i) Add the configuration item http=0.0.0.0:16666 in the uwsgi.ini file.
[0043] ii) Allow users to specify the listening address and port through parameters when the script is executed. If specified, use the values provided by the user.
[0044] S304. Configure wsgi-file, including: i) Analyze the project directory structure and automatically locate the entry file path of the Flask project.
[0045] ii) Add the configuration item wsgi-file=xxx / app.py in the uwsgi.ini file, where xxx / app.py is the automatically located entry file path.
[0046] S305. Configure callable, including: i) Add a configuration item in the uwsgi.ini file.
[0047] ii) According to the actual situation of the project, allow the value of callable to be adjusted to the actual name of the Flask application instance, with the default being app.
[0048] S306. Add the following basic configuration options in the uwsgi.ini file, including: i) master=true: Enable the master process.
[0049] ii) vhost=true: Enable the virtual host function (applicable to multi-project deployment scenarios).
[0050] iii) cache=true: Enable caching to improve performance.
[0051] iiii) lazy - apps = true: Load the application in each worker.
[0052] iiiii) enable - threads = true: Allow starting new threads in the program to improve concurrent processing ability.
[0053] S307. Reasonably set workers and threads, including: i) According to the server resource situation, reasonably set the number of workers (working processes) and the number of threads; for example, as shown in the appendix Figure 3 Set workers to 1 - 2 times the number of CPU cores according to the number of CPU cores of the server.
[0054] ii) Dynamically adjust threads according to the I / O characteristics of the project, and appropriately increase the number of threads for I / O - intensive projects.
[0055] iii) Add configuration items workers = [reasonable value] and threads = [reasonable value] in the uwsgi.ini file.
[0056] Based on the above steps, write a script in Shell language and assemble flask and uwsgi through the shell script. After that, the script can be run. After the script runs successfully, a page indicating the success of uwsgi as shown in the appendix will be returned, thereby improving the operability for non - professionals and the work efficiency of practitioners. Figure 4 shown, thus improving the operability for non - professionals and the work efficiency of practitioners.
[0057] It should be noted that the above examples are only for explaining the present invention and should not limit the protection scope of the present invention. Example 2
[0058] This example is based on the same inventive concept as the Flask project automated deployment method described in Example 1, and provides a Flask project automated deployment system. As Figure 6 shown, it includes: An environment detection and installation module, which is used to: detect the type of the server operating system, install the development environment according to the server operating system type, and install the application framework and the application server after the development environment is installed, and monitor the installation status of the application framework and the application server in real - time; A project preparation module, which is used to: obtain the Flask project path input by the user, verify the validity of the Flask project path and check the existence of the dependency management file, and install the dependency packages according to the existence of the dependency management file; Configuration and startup module, which is used to: enter the project directory, generate an application server configuration file under the project directory, and perform configuration of multiple configuration items based on the application server configuration file. Embodiment 3
[0059] This embodiment provides a computer-readable storage medium, including: The storage medium is used to store computer software instructions for implementing the Flask project automated deployment method described in the above Embodiment 1, and it contains a program set for the Flask project automated deployment method; specifically, this executable program can be built into the Flask project automated deployment system described in Embodiment 2. In this way, the Flask project automated deployment system can implement the Flask project automated deployment method described in the above Embodiment 1 by executing the built-in executable program.
[0060] In addition, the computer-readable storage medium of this embodiment can adopt any combination of one or more readable storage media, where the readable storage medium includes electrical, optical, electromagnetic, infrared, or semiconductor systems, devices, or components, or any combination of the above. Embodiment 4
[0061] This embodiment provides an electronic device, as Figure 7 shown, the electronic device may include: a processor 1501, a communication interface 1502, a memory 1503, and a communication bus 1504. Among them, the processor 1501, the communication interface 1502, and the memory 1503 complete mutual communication through the communication bus 1504.
[0062] The memory 1503 is used to store a computer program; When the processor 1501 is used to execute the computer program stored on the memory 1503, it implements the steps of the Flask project automated deployment method described in the above Embodiment 1.
[0063] As an implementation manner of the present invention, the communication bus mentioned in the above terminal may be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus, etc. This communication bus can be divided into an address bus, a data bus, a control bus, etc. For the sake of representation, Figure 7 only a thick line is shown in, but it does not mean that there is only one bus or one type of bus.
[0064] As an implementation manner of the present invention, the communication interface is used for communication between the above terminal and other devices.
[0065] As an implementation manner of the present invention, the memory may include a random access memory (RAM) and may also include a non-volatile memory, such as at least one disk memory. Optionally, the memory may also be at least one storage device located away from the aforementioned processor.
[0066] As an implementation manner of the present invention, the above-mentioned processor may be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it may also be a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field-programmable gate array (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components.
[0067] Different from the prior art, by adopting an automated deployment method, system, device and medium for a Flask project in this application, the deployment process of the Flask project can be optimized by using shell scripts, improving the deployment efficiency, reducing the deployment threshold, enhancing the deployment reliability and high customizability; ultimately, it not only saves the time and effort of developers, but also reduces the deployment cost, making project development and online more efficient, convenient and reliable.
[0068] It should be understood that in various embodiments herein, the magnitudes of the serial numbers of the above processes do not mean the order of execution is prior or subsequent. The order of execution of each process should be determined by its function and internal logic, and should not constitute any limitation to the implementation process of the embodiments herein.
[0069] It should also be understood that in the embodiments herein, the term "and / or" is only a description of the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B may represent: A exists alone, A and B exist simultaneously, and B exists alone. In addition, the character " / " in this article generally represents an "or" relationship between the associated objects before and after.
[0070] Those of ordinary skill in the art can realize that the units and algorithm steps of the examples described in combination with the embodiments disclosed herein can be implemented by electronic hardware, computer software, or a combination of the two. To clearly illustrate the interchangeability of hardware and software, the composition and steps of the examples have been generally described according to functions in the above description. Whether these functions are executed in a hardware or software manner depends on the specific application and design constraints of the technical solution. Professional technicians can use different methods to implement the described functions for each specific application, but such implementation should not be considered to exceed the scope of this article.
[0071] Those skilled in the art can clearly understand that for the convenience and brevity of description, the specific working processes of the systems, devices, and units described above can refer to the corresponding processes in the foregoing method embodiments and will not be elaborated herein.
[0072] In the several embodiments provided in this article, it should be understood that the disclosed systems, devices, and methods can be implemented in other ways. For example, the device embodiments described above are merely illustrative. For example, the division of the units is only a logical function division. In actual implementation, there may be other division methods. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. In addition, the displayed or discussed couplings, direct couplings, or communication connections to each other can be indirect couplings or communication connections through some interfaces, devices, or units, and can also be in electrical, mechanical, or other forms of connection.
[0073] The units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they can be located in one place, or can be distributed to multiple network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiments in this article.
[0074] In addition, the functional units in the various embodiments of this article can be integrated into one processing unit, or each unit can exist physically alone, or two or more units can be integrated into one unit. The above-mentioned integrated units can be implemented in the form of hardware or in the form of software functional units.
[0075] When the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution herein, in essence, or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the methods described in the various embodiments herein. The foregoing storage medium includes: various media that can store program codes, such as USB flash drives, mobile hard disks, read-only memories (ROMs), random access memories (RAMs), magnetic disks, or optical discs.
[0076] The above are only embodiments of the present invention and do not limit the patent scope of the present invention. Any equivalent structural or equivalent process transformations made by using the content of the specification and drawings of the present invention, or directly or indirectly applied in other related technical fields, are equally included in the patent protection scope of the present invention.
Claims
1. An automated deployment method for Flask projects, characterized in that, Including the following steps: Environmental detection and installation steps: Detect the type of the server operating system, install the development environment according to the type of the server operating system, and install the application framework and the application server after the installation of the development environment, and monitor the installation status of the application framework and the application server in real time; Project preparation steps: Obtain the Flask project path input by the user, verify the validity of the Flask project path and check the existence of the dependency management file, and install the dependency packages according to the existence of the dependency management file; Configuration and startup steps: Enter the project directory, and generate an application server configuration file under the project directory, and configure multiple configuration items based on the application server configuration file.
2. The Flask project automatic deployment method according to claim 1, wherein: The installing the development environment according to the type of the server operating system includes: In response to the server operating system type being CentOS, use the package management tool yum and execute the command yum install python-devel -y; In response to the server operating system type being Ubuntu, use the package management tool apt-get and execute the command sudo apt-get install python3-dev -y.
3. The Flask project automatic deployment method according to claim 1, wherein: The installing the application framework and the application server after the installation of the development environment includes: Call the pip tool to execute the command pip install uwsgi to install the uwsgi application server; Call the pip tool to execute the command pip install flask to install the Flask application framework.
4. The Flask project automatic deployment method according to claim 1, wherein: The monitoring the installation status of the application framework and the application server in real time includes: Monitor the installation status of the uwsgi application server and the Flask application framework in real time; In response to the installation failure caused by network connection problems, output detailed error information and prompt to check the network settings; In response to the installation failure caused by missing dependency packages, output detailed error information and output the solution command for installing the dependency packages.
5. The Flask project automatic deployment method according to claim 1, wherein: The verifying the validity of the Flask project path and checking the existence of the dependency management file includes: Validity verification: Ensure that the Flask project path exists and ensure that the Flask project path points to the correct Flask project directory; Checking the dependency management file: Check whether there is a requirements.txt file in the project.
6. The Flask project automatic deployment method according to claim 5, wherein: The installing the dependency packages according to the existence of the dependency management file includes: In response to the existence of the requirements.txt file in the project, use commands to install other dependent packages required for the project to ensure the integrity of the project running environment.
7. The Flask project automated deployment method according to claim 1, characterized in that: The configuration of multiple configuration items is based on the application server configuration file, including: In the application server configuration file, perform the following configurations: Configure the listening address and port, configure the wsgi-file, configure the callable, add basic configuration options in the uwsgi.ini file, and set workers and threads; The basic configuration items include: master=true: Enable the master process; vhost=true: Enable the virtual host function; cache=true: Enable caching to improve performance; lazy-apps=true: Load the application in each worker; enable-threads=true: Allow starting new threads in the program to improve the concurrent processing ability; The setting of workers and threads includes: According to the server resource situation, set the number of workers working processes and the number of threads threads; Dynamically adjust threads according to the I / O characteristics of the project; Add configuration items workers=[reasonable value] and threads=[reasonable value] in the uwsgi.ini file.
8. An automated deployment system for Flask projects, characterized in that, Include: An environment detection and installation module, used for: detecting the type of the server operating system, installing the development environment according to the type of the server operating system, and installing the application framework and the application server after the installation of the development environment, and monitoring the installation status of the application framework and the application server in real time; A project preparation module, used for: obtaining the Flask project path input by the user, validating the validity of the Flask project path and checking the existence of the dependency management file, and installing the dependent packages according to the existence of the dependency management file; A configuration and start module, used for: entering the project directory, generating an application server configuration file under the project directory, and performing the configuration of multiple configuration items based on the application server configuration file.
9. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, it implements the steps of the Flask project automated deployment method described in any one of claims 1 to 7.
10. A computer device, characterized in that, It includes a processor, a communication interface, a memory, and a communication bus. Among them, the processor, the communication interface, and the memory complete mutual communication through the communication bus; among them: The memory is used to store a computer program; The processor is used to execute the steps of the Flask project automated deployment method described in any one of claims 1 to 7 by running the program stored on the memory.