Deployment Methods
Static website hosting supports three deployment methods: uploading code packages/folders, creating from official templates, and Git repository deployment. This document introduces how to use these deployment methods, configure build commands, set deployment paths, and deployment solutions for common frontend frameworks.
Quick Start
Deployment Entry
Go to CloudBase Console - Static Website Hosting

Deployment Methods
Method 1: Upload Code Package/Folder
Use case: You already have project code locally and want to deploy quickly.
Upload Code Package
Prepare code package:
Supports uploading code packages in the following formats:
.zipformat (recommended)
Code package requirements:
- The code package should contain the complete frontend project source code
Deployment steps:
- On the "Static Website Hosting" page, click "New Deployment"
- Select "Upload Code Package"
- Click "Select File" to upload a local ZIP file
- Configure build parameters See below for details
- Click "Deploy"
Upload Folder
Deployment steps:
- On the "Static Website Hosting" page, click "New Deployment"
- Select "Upload Folder"
- Select the local project folder
- Configure build parameters (see below for details)
- Click "Start Deployment"
Before uploading the code package, you can delete common unnecessary directories such as node_modules, .git, etc., to avoid excessively large uploads that may cause upload failures.
Method 2: Create from Official Template
Use case: Quickly create new projects and develop based on best practice templates.
Supported official templates:
- React Template: Standard React project created based on Create React App
- Vue Template: Standard Vue 3 project created based on Vue CLI
Deployment steps:
- On the "Static Website Hosting" page, click "New Deployment"
- Select "Create from Template"
- Select template type (React or Vue)
- Configure build parameters See below for details
- Click "Deploy"
Template features:
- ✅ Ready to use out of the box, no configuration needed
- ✅ Integrated best practices
- ✅ Automatically configured build commands
- ✅ Supports online modification and redeployment
Method 3: Git Repository Deployment
Use case: Continuous integration, automatically trigger deployment when code is updated.
Personal Repository (Recommended)
Supports direct deployment from your Git repository:
- GitHub
- GitLab
- Gitee (码云)
- 腾讯工蜂
Deployment steps:
- On the "Static Website Hosting" page, click "New Deployment"
- Select "Git Repository"
- Select "Personal Repository"
- Authorize access to your Git platform account
- Select the repository and branch to deploy
- Configure build parameters
- Click "Deploy"
Public Repository
Supports deployment from any public Git repository:
Deployment steps:
- On the "Static Website Hosting" page, click "New Deployment"
- Select "Git Repository"
- Select "Public Repository"
- Enter the repository URL (e.g.,
https://github.com/username/repo.git) - Select branch (default
mainormaster) - Configure build parameters
- Click "Deploy"