TLDR; This article provides you with a compliant and simple solution to get your Heroku applications working fast and stable in China.
What is Heroku?
Heroku is a cloud deployment platform that provides multiple programming languages. It supports pulling code from GitHub, package it in a custom way, and deploy it to a cloud server.
Does Heroku work in China?
No. Although Heroku is not blocked in China, it does not have any servers in mainland China. As a result, Heroku is either unavailable or slow for users in China.
Comparison Chart Before and After a Speed Increase
The speed test shows the site deployed on Heroku doesn’t work or is very slow (orange) in China (left picture).
After speeding up with 21YunBox, the results have reached the maximum available speed (all the provinces with tests on the right are dark green)
Source Code of the Test Project
We chose a Streamlit example as the test object:
GitHub code repository: https://github.com/tobyglei/hello-streamlit-sample2
Gitee code repository: https://gitee.com/eryiyunbox-examples/hello-streamlit-sample2
How to Improve Heroku’s Access Speed in China?
The disadvantages of using the basic cloud server to deploy are very obvious. There are many initial configurations to consider such as building Nginx, certificate maintenance and update, database management, etc. If you want to make continuous deployment (Git push automatic packaging and deployment), you will need to cooperate Use Continuous Integration tools such as Jenkins / Github Action / Travis CI, etc.
If you want a hassle free solution like Heroku in China, you can host your application with 21YunBox.
Take Streamlit as an example, the process of hosting in 21YunBox:
1. Signup on 21YunBox
2. Authorize 21YunBox to access the code repository you want to deploy
3. Configure Build command and publish directory
4. Click “Create”
Before you know it, your site is packaged and deployed online.
You can access your project at
app_id is created and defined).
To help explain the process, we’ve prepared a short Step by Step example video:
What else can 21YunBox Host?
More complicated, like the back-end application framework Python Django or PHP Laravel. This is notoriously complicated to deploy. 21YunBox allows you to complete the package and go online to generate a unique second-level domain name in three or four minutes.
What else? Want to know more? You can check out How to use 21YunBox
- How to Make Airtable Work in China?
- How to Make Contentful Work in China?
- How to Make Sanity CMS Work in China?
- Cloudinary Alternatives in China
- How to Speed-Up Shopify Stores in China?
- Best Firebase Alternative for China
- How to improve Github Pages' Access Speed in China?
- How to Improve Gatsby Cloud's Access Speed in China?
- How to Improve the Access Speed of Surge.sh in China?
- How to Make Netlify Work in China?
- How to Improve the Access Speed of Vercel in China?
the 50th CNNIC Statistical Report on China's Internet Development
Aug 31, 2022
How To Get an ICP License In China?
Aug 29, 2022
21YunBox Build FAQ
Aug 21, 2022
How Much Does It Cost to Host a Website in China?
Jul 28, 2022
Didi fined $1.2 billion for breaking China Data Security Laws
Jul 21, 2022