From 0d4c553d15a2e6bf849cdda3a8bdcc9ddd27de9e Mon Sep 17 00:00:00 2001 From: Ryan Zhu Date: Thu, 25 Jan 2024 17:06:08 +0800 Subject: [PATCH 1/2] Create zeabur.md --- docs/deploy/zeabur.md | 51 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 51 insertions(+) create mode 100644 docs/deploy/zeabur.md diff --git a/docs/deploy/zeabur.md b/docs/deploy/zeabur.md new file mode 100644 index 000000000..d8893e8df --- /dev/null +++ b/docs/deploy/zeabur.md @@ -0,0 +1,51 @@ +## What is Zeabur + +[Zeabur](https://zeabur.com) is a platform that helps you deploy your service with one click, No matter what programming language or framework you use. + +## Signing Up + +You need a Zeabur account. If you don't have one, please use the following link to create: +
+https://zeabur.com/zh-TW/login + +Zeabur uses "Login with GitHub" and needs access to your GitHub repos. You could change its access to your different projects and organizations later. + +## Upload Your Project to GitHub + +Before you deploy your Vapor project, you need to upload it to GitHub. Zeabur connects to your GitHub account, and you can select your public or private repo to deploy on Zeabur's Dashboard. + +### Remove Docker File + +The project created by the Vapor command has Dockerfile and docker-compose.yml by default. To avoid being recognized as the Docker Container by Zeabur, you need to delete these two files: + +```bash +rm Dockerfile docker-compose.yml +``` + +### Sync Your Files + +Make sure that all your changes have been synchronized to GitHub: + +```bash +git add . +git commit -m "your commit message" +git push +``` + +## Deployment + +Go to [Zeabur Console](https://dash.zeabur.com) and create a new project. + +Then, click the `Deploy New Service` button and select deploy from GitHub. + +After you select the repository and branch, Zeabur will automatically start building your service. + +Zeabur will automatically detect that your service is built by Vapor, so you don't need to do any additional configuration. Your deployment will be completed in a few minutes. + +## Next + +After the deployment is completed, you may need to configure the domain for your Vapor website. + +Open the "Domain" tab of the service page, and then click "Generate Domain" or "Custom Domain". + +For more information on how to bind a domain to your service, please refer to Zeabur's Docs on [Domain Binding](/deploy/domain-binding). From 4f2b29f8ab5050d186d8e684592da0a518a5f121 Mon Sep 17 00:00:00 2001 From: Ryan Zhu Date: Sun, 28 Jan 2024 13:50:27 +0800 Subject: [PATCH 2/2] Update zeabur.md --- docs/deploy/zeabur.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/deploy/zeabur.md b/docs/deploy/zeabur.md index d8893e8df..8d0d22f2d 100644 --- a/docs/deploy/zeabur.md +++ b/docs/deploy/zeabur.md @@ -48,4 +48,4 @@ After the deployment is completed, you may need to configure the domain for your Open the "Domain" tab of the service page, and then click "Generate Domain" or "Custom Domain". -For more information on how to bind a domain to your service, please refer to Zeabur's Docs on [Domain Binding](/deploy/domain-binding). +For more information on how to bind a domain to your service, please refer to Zeabur's Docs on [Domain Binding](https://zeabur.com/docs/deploy/domain-binding).