How to Deploy Python Flask Apps in China? (A Step-by-Step Guide)
How to Deploy Python Flask Apps in China? (A Step-by-Step Guide)

TLDR; This Flask China tutorial provides you with a step-by-step solution to deploy and host your Flask application in China.


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 to China. 21YunBox allows you to quickly deploy in a Python Runtime.

How to deploy Flask in China?

  1. Signup on 21YunBox
  2. On Gitee Fork flask example
  3. Create a cloud service on 21YunBox, and allow 21YunBox to access your code base
  4. Use the following values during creation
Runtime Python
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 the Flask project to the server?



Ready to try 21YunBox?

Get your site deployed in China with ease!

Get Started Questions? Talk to an expert.