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
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
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