How to Make Heroku Work in China?
Tags: heroku, china, nocode, api
Published: 2021-02-15 17:52:34

---
canonical_url: https://www.21cloudbox.com/solutions/how-to-speed-up-heroku-in-china.html
---
# 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.

<br>
<br>
## Comparison Chart Before and After a Speed Increase
<br>
![Alt Text](https://dev-to-uploads.s3.amazonaws.com/i/sy8gac0k1ud950sxbj7s.png)
The image above shows the speed test result of the site deployed on Heroku*
<br>
![Alt Text](https://dev-to-uploads.s3.amazonaws.com/i/5mg8d0h3zl9tmjor4366.png)
The image above shows the speed increase after deploying the same site with 21YunBox.*

The color represents the feedback time of the site, green represents fast, and the closer to red, it means extremely slow or even inaccessible.

**It can be seen that the access speed of the site deployed on Heroku in China is very unsatisfactory (left picture), and most areas are very slow (orange).**

After speeding up, the results have reached the maximum speed available (all the provinces with tests on the right are dark green)

<br>
<br>
## Source Code of the Test Project

![Alt Text](https://dev-to-uploads.s3.amazonaws.com/i/nce5r4zly9i4qia0b9qj.png)

We chose a Streamlit example as the test object:

- GitHub code repository: [https://github.com/tobyglei/hello-streamlit-sample2](https://github.com/tobyglei/hello-streamlit-sample2)

- Gitee code repository: [https://gitee.com/eryiyunbox-examples/hello-streamlit-sample2](https://gitee.com/eryiyunbox-examples/hello-streamlit-sample2)


<br>
<br>
## How to Improve Heroku's Access Speed in China?

Deploy the application directly to domestic cloud service providers, such as [AWS China](https://aws.amazon.com/cn/) or [Alibaba Cloud](https://help .aliyun.com/document_detail/31872.html).

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. Register as a [21YunBox member](https://www.21yunbox.com/u/signup/)

#### 2. Authorize 21YunBox to access the code repository you want to deploy

![Alt Text](https://dev-to-uploads.s3.amazonaws.com/i/so2gdj1houaq3bkb02l9.png)*Sample image: Select the code repository to be deployed in 21YunBox*

#### 3. Configure Build (Package) Command and Release Directory
![Alt Text](https://dev-to-uploads.s3.amazonaws.com/i/so2gdj1houaq3bkb02l9.png)*Sample image: Configure Streamlit build (package) command and start command*

#### 4. Click "Deploy Now"
Before you know it, your site is packaged and deployed online.

You can access your project at `app_id.21yunbox.com` (`app_id` is created and defined).

#### To help explain the process, we've prepared a short Step by Step [example video](https://www.bilibili.com/video/BV1SK4y1j7V2).

<br>
<br>
## What else can 21YunBox Host?

Static web pages, such as [static blog](https://launch-in-china.21yunbox.com/solutions/how-to-deploy-hexo-static-site-in-production-server.html), [static document](https://launch-in-china.21yunbox.com/solutions/how-to-deploy-vuepress-project-in-production-server.html), Enterprise official site can easily be done for you.

More complicated, like the back-end application framework [Python Django]({https://launch-in-china.21yunbox.com/solutions/how-to-deploy-django-project-in-production-server.html) or [PHP Laravel](https://launch-in-china.21yunbox.com/solutions/how-to-deploy-laravel-project-in-production-server.html) 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 about a database? Yes, we can also simplify this process for you with a one-click to build database solution.  Check out these [PostgreSQL](https://launch-in-china.21yunbox.com/solutions/how-to-create-a-postgresql-database.html) or [MySQL](https://launch-in-china.21yunbox.com/solutions/how-to-create-a-mysql-database.html)examples (with videos). 


What else? Want to know more? You can check [Help Document](https://www.21yunbox.com/docs/#/)

<br>
<br>
## January 2020 UPDATE: Want a No-Code solution to Get Heroku Working in China?
> 21YunBox has recently released a new No-Code solution, YAMMO, to make Heroku and most APIs work in Mainland China.  To learn more, email us at Hello@Yammo.io

* [21YunBox vs Heroku](https://launch-in-china.21yunbox.com/solutions/how-to-speed-up-heroku-in-china.html)
* [21YunBox vs Netlify](https://launch-in-china.21yunbox.com/blog/solutions/alternatives-to-netlify-in-china.html)
* [21YunBox vs Vercel](https://launch-in-china.21yunbox.com/solutions/how-to-speed-up-vercel-in-china.html)
* [21YunBox vs Gatsby Cloud](https://launch-in-china.21yunbox.com/solutions/how-to-speed-up-gatsby-cloud-in-china.html)
* [21YunBox vs Github Pages](https://launch-in-china.21yunbox.com/solutions/how-to-speed-up-github-pages-in-china.html)
* [21YunBox vs Surge.sh](https://launch-in-china.21yunbox.com/solutions/how-to-speed-up-surgesh-in-china.html)
* [Compare in terms of function and price: 21YunBox vs Heroku, Netlify, Vercel](https://www.21yunbox.com/compare-others/)


<br>
*This article's content originated [here](https://launch-in-china.21yunbox.com/solutions/how-to-speed-up-heroku-in-china.html)*

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