introduce
CloudBase Framework is a cloud native integrated deployment tool officially produced by Cloud Development. It helps developers to deploy static websites, back-end services and small programs to the cloud platform of cloud development Serverless architecture with one click. It automatically scales and does not care about operation and maintenance, focusing on the application itself. You don’t have to worry about the underlying configuration and resources
Cloud development CloudBase Framework Framework Container plug-in: The CloudBase Framework is used to deploy project applications to a cloud hosting environment for cloud development in one click, providing high-performance Container computing services that can be automatically and flexibly scaled for production environments. It can be combined with other plug-ins such as Website plug-in and Node plug-in to achieve integrated cloud development.
Method of use
Step 1: Preparation
For details, see Preparing a Cloud Development Environment and CloudBase CLI Tool
Step 2 Go to the project directory for initialization
After entering the project directory, create the cloud development configuration file cloudBaserc.json
touch cloudbaserc.json
Copy the code
Or automatically create relevant configuration files in the project directory
tcb
Copy the code
Step 3 Edit the configuration filecloudbaserc.json
For more parameter descriptions, see Configuration Parameter Description
{ "envId": "{{envId}}", "framework": { "plugins": { "client": { "use": "@cloudbase/framework-plugin-container", "Inputs ": {"serviceName":" application name ", "servicePath": "/", "localPath": "./"}}}}}Copy the code
Step 4. Create a variable file **.env**
To facilitate our future deployment, we can inject variables into cloudBaserc.json ** file by creating a **. Env file
touch .env
Copy the code
After creating the variables file, edit the **. Env ** file to add variables
EnvId = CLOUD environment IDCopy the code
Step 5 One-click Application deployment
At this point our directory structure is
. ├ ─ cloudbaserc. Json ├ ─. Env ├ ─...Copy the code
Execute commands in the project directory
cloudbase framework deploy
Copy the code
Deployment complete!
One-click deployment button (optional)
After deployment, project files can also be uploaded to Github, Gitlab, Coding, Gitee, and other Git repositories. You can then go to the cloud development official documentation to generate a unique deployment label
Product introduction
Cloud Development (TCB) is a cloud native integrated development environment and tool platform provided by Tencent Cloud. It provides developers with highly available, automatic and flexible expansion of back-end cloud services, including computing, storage, hosting and other serverless capabilities, which can be used for cloud integrated development of various end applications (small programs, Public account, Web application, Flutter client, etc.) to help developers build and manage back-end services and cloud resources in a unified manner, avoiding tedious server construction, operation and maintenance during application development. Developers can focus on the implementation of business logic, with lower development threshold and higher efficiency.
Open cloud development: console.cloud.tencent.com/tcb?tdl_anc…
The product documentation: cloud.tencent.com/product/tcb…
Technical documentation: Cloudbase.net? From =10004
Technical exchange plus Q group: 601134960
Latest news follow wechat official account [Tencent Yunyun Development]