
What is Go Gin?
Gin is a web framework developed based on the Go language. It is an API like Martini, but the performance is said to be 40x better than Martini’s.
21YunBox provides a very simple Gin project deployment method. You can deploy on the 21YunBox by using the Go operating environment.
How to Deploy Go Gin Apps with 21YunBox?
- Signup on 21YunBox
- On Gitee Fork Go Gin launch template
- Create a Cloud Service on 21YunBox, and allow 21YunBox to access your code base
- Use the following values during creation
Runtime | Go |
---|---|
Build command | ./build.sh |
Start command | ./app |
Click Advanced Configuration to configure environment variables:
KEY. | VALUE | Explanation |
---|---|---|
PORT | 10000 |
21YunBox default read port 10000 |
Go Gin Startup Template is a real-time chat project implemented using Gin, using server-sent events (SSEs) to broadcast messages (not websockets).
When the deployment is successful, you can access the Gin project at app_id.21cloudbox.com
.

Related Posts
- How to Deploy Laravel Apps in China? (2022 updated)
- How to Deploy Parse Dashboard in China? (A Step-by-Step Guide)
- How to Host WordPress in China?
- How to host Ghost Blog in China?
- How to Deploy Ruby on Rails Apps in China? (A Step-by-Step Guide)
- How to Deploy Java Spring Apps in China? (A Step-by-Step Guide)
- How to Deploy Hugo Static Sites in China?
- How to Deploy Streamlit App in China? (A Step-by-Step Guide)
- How to Deploy Express Apps in China? (A Step-by-Step Guide)
- How to Deploy Django Apps in China? (A Step-by-Step Guide)
- How to Deploy Python Flask Apps in China? (A Step-by-Step Guide)
Recent Posts
-
How to make Shopify work in China?(2023 Updated)
May 9, 2023
-
Breaking Through the Great Firewall: How to Keep Your Online Forms Accessible in China Without ReCAPTCHA
May 2, 2023
-
Tips for Businesses Looking to Sell Products in China: How to Start and Where to Start
Apr 20, 2023
-
Cross-Border Data Transfers: PIPL vs. GDPR vs. CCPA
Apr 20, 2023
-
What is data privacy?
Apr 19, 2023