How to Deploy Flask to China?
Tags: flask, python, webdev, china
Published: 2021-02-26 16:29:31

---
canonical_url: https://www.21cloudbox.com/solutions/how-to-deploy-flask-project-in-production-server.html
---
# What is Flask?
Flask is a lightweight web framework that was developed based on: Python, WerkzeugWSGI, and Jinja2 template engine.  It also has has a wealth of open source plug-ins.

21YunBox provides a very simple Flask deployment method. 21YunBox allows you to quickly deploy in a **static site** environment.

# How to deploy Flask in China?
1. Register as a [21YunBox member](https://www.21yunbox.com/u/signup/)
2. On Gitee Fork [flask example](https://gitee.com/eryiyunbox-examples/flask-hello-world)
3. Create a **cloud service** on 21YunBox, and allow 21YunBox to access your code base
4. Create with the following configuration

| Environment.  | **`Python 3`**                        |
| ------------- | :-----------------------------------: |
| Build command | **`pip install -r requirements.txt`** |
| Start command | **`gunicorn app:app`**                |


If you'd like a step by step example, please refer to the video below: [How to deploy](https://www.bilibili.com/video/BV1Wp4y1r7Ks) the Flask project to the server.

<br>
<br>
## Why Choose 21YunBox?

> 21YunBox is a Cloud Service platform based out of Beijing. Our services [enable your team](https://launch-in-china.21yunbox.com/customers/how-21yunbox-help-ethereum-launch-in-china.html) to be more effective in leveraging the growing opportunity within China by hosting your sites at blazing speeds with an operational and maintenance free solution. 
>
> We offer an easy and budget friendly, end-to-end web platform deployment service for all applications from small teams to large enterprises.
>
> Need assistance it [obtaining your ICP](https://launch-in-china.21yunbox.com/solutions/how-to-get-an-ICP-license-for-china.html)?  Let us know, we are happy to assist you in the process.

Looking to deploy other projects in China?  See a list of a few of our How-to-Deploy series below:

* [How to deploy Next.js](https://launch-in-china.21yunbox.com/solutions/how-to-deploy-nextjs-project-in-production-server.html)
* [How to deploy Hexo](https://launch-in-china.21yunbox.com/solutions/how-to-deploy-hexo-static-site-in-production-server.html)
* [How to deploy Strapi](https://launch-in-china.21yunbox.com/solutions/how-to-deploy-strapi-project-in-production.html)
* [How to deploy Django](https://launch-in-china.21yunbox.com/solutions/how-to-deploy-django-project-in-production-server.html)
* [How to deploy Docsify](https://launch-in-china.21yunbox.com/solutions/how-to-deploy-docsify-project-in-production-server.html)
* [How to deploy Express](https://launch-in-china.21yunbox.com/solutions/how-to-deploy-express-project-in-production-server.html)
* [How to deploy Jekyll](https://launch-in-china.21yunbox.com/solutions/how-to-deploy-jekyll-project-in-production-server.html)
* [How to deploy Laravel](https://launch-in-china.21yunbox.com/solutions/how-to-deploy-laravel-project-in-production-server.html)
* [How to deploy Nuxt.js](https://launch-in-china.21yunbox.com/solutions/how-to-deploy-nuxtjs-project-in-production-server.html)
* [How to deploy React](https://launch-in-china.21yunbox.com/solutions/how-to-deploy-reactjs-project-in-production-server.html)
* [How to deploy Streamlit](https://launch-in-china.21yunbox.com/solutions/how-to-deploy-streamlit-project-in-production-server.html)
* [How to deploy Vue.js](https://launch-in-china.21yunbox.com/solutions/how-to-deploy-vuejs-project-in-production-server.html)
* [How to deploy VuePress](https://launch-in-china.21yunbox.com/solutions/how-to-deploy-vuepress-project-in-production-server.html)
* [How to deploy Hugo](https://launch-in-china.21yunbox.com/solutions/how-to-deploy-hugo-in-production-server.html)
* [How to deploy Gatsby](https://launch-in-china.21yunbox.com/solutions/how-to-deploy-gatsby-project-in-production-server.html)
* [How to deploy Rails](https://launch-in-china.21yunbox.com/solutions/how-to-deploy-ruby-rails-in-produciton-server.html)
* [How to deploy Spring Boot](https://launch-in-china.21yunbox.com/solutions/how-to-deploy-java-spring-in-produciton-server.html)
* [How to deploy Go Gin](https://launch-in-china.21yunbox.com/solutions/how-to-deploy-go-gin-in-production-server.html)


<br>
*This article's content originated [here](https://launch-in-china.21yunbox.com/solutions/how-to-deploy-flask-project-in-production-server.html)*

*For additional detail and future modifications, refer the original post.*