How to use Zeabur for project deployment?

AI FAQ2mos agoupdate Timi
3 0 0

There are two main ways to deploy a project using Zeabur, through the web interface and the command line tool (CLI), as described below:

Deployment through the web interface

  1. Register an account: Go to the Zeabur login page, click the button to register with your GitHub account, and then you will be redirected to the GitHub authorization page, click the “Authorize” button to allow Zeabur to access your GitHub account.
  2. Create a new project: After authorization is complete, you will be automatically redirected to the Zeabur dashboard. Click the “Create Project” button or use the shortcut “cmd + k” to open the quick action menu and select “Create Project”. Select the project region in the modal box that pops up. Zeabur currently supports APAC East, US West, Central Europe, and Northeast APAC on AWS, but APAC East on GCP is only available to Team Plan users. After selecting the region, Zeabur will create a project with a random name for you, and you can change the name in the project settings.
  3. Deploy Service: Click on the project you just created to enter the project page and click on the “Add Service” button. Select a service type in the modal box that pops up. Zeabur supports three types of services, including Git services for deploying source code from GitHub, pre-built services for deploying common services (such as databases or open source tools) from the pre-built marketplace, and Once services for deploying services purchased from Once. Select the type of service you want, then search for and select the service you want to deploy and follow the prompts to complete the deployment.

Deployment via Command Line Instrumentation (CLI)

  1. Install Zeabur CLI: Depending on your operating system, refer to the installation guide in the official Zeabur documentation. For example, on MacOS, you can complete the installation by executing “brew install zeabur/tap/cli” on the command line.
  2. Login: After the installation, execute the command “npx zeabur@latest auth login” in the command line, press enter to open the login page in the browser, click the confirmation button, and then redirect back to the terminal to see the message of successful login.
  3. Deploy service: Enter the service directory you want to deploy, execute the command “npx zeabur@latest deploy” on the command line, and then follow the prompts to select or create the project, after which you will see the deployment progress in the terminal, wait for a while, the service will be automatically deployed, and get the service’s URL of the service.

In addition, if your project needs to be deployed using Dockerfile, you can create a file named “Dockerfile” or “dockerfile” in the root directory of the project and write the deployment method in it. Zeabur will automatically detect and use this Dockerfile for deployment. If you don’t want to use the project’s Dockerfile, you can set the environment variable “zb_pack_ignore_dockerfile = true”, or in the “zb_pack.json” file, you can or in the “zb_pack.json” file add “{ “ignore_dockerfile”: true }”.

© Copyright notes

Related posts

No comments

none
No comments...