Heroku Official Website
Heroku Official Website

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.

Comparison Chart Before and After a Speed Increase

Left image: the speed test result of the site deployed on Heroku; the right image is the speed increase after deploying 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.
Left image: the speed test result of the site deployed on Heroku; the right image is the speed increase after deploying 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.

Left image: the speed test result of the site deployed on Heroku; the right image is the speed increase after deploying 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)

Source Code of the Test Project

Streamlit official website screenshot
Streamlit official website screenshot

We chose a Streamlit example as the test object:

How to Improve Heroku’s Access Speed in China?

Deploy the application directly to domestic cloud service providers, such as AWS China or Alibaba Cloud.

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

Sample image: Select the code repository to be deployed in 21yunbox
Sample image: Select the code repository to be deployed in 21yunbox

3. Configure Build (Package) Command and Release Directory

Sample image: Configure Streamlit build (package) command and start command
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:

How to deploy Streamlit to a server?

What else can 21YunBox Host?

Static web pages, such as static blog, static document, Enterprise official site can easily be done for you.

More complicated, like the back-end application framework Python Django or [PHP Laravel]/solutions/how-to-deploy-laravel-project-in-production-server.html){:target=”_blank”}. 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 deploying a database in China? Yes, we can also simplify this process for you with a one-click to build database solution. Check out these PostgreSQL or MySQL examples (with videos).

What else? Want to know more? You can check Help Document