Cloud hosting CloudBase Run is a new generation of cloud native application engine provided by Cloud Development. It can host containerized applications written in any language and framework. Can be used for cloud integration to develop multiple applications (applets, public accounts, Web applications, microservices, Flutter clients, etc.). How to use cloud hosting to implement the Profession Wall application?

Now, you can quickly deploy your own applications to the cloud using cloud hosting, which provides developers with highly available, automatic, flexible and scalable back-end cloud services. Developers can focus on the implementation of business logic, greatly increasing the development efficiency.

Project introduction

This is a simple but beautiful application developed in PHP, users can post and share confession cards, by MR-Wu.

How to deploy

Cloud managed console deployment

Step1 download the source code

Project address: github.com/wangzhuolin… (For cloud hosted versions, the original repository can be found in readme.md).

Step2 modify the configuration

Modify ADMIN_USER and ADMIN_PASS variables in config.php and MySQL database information.

Note: Remember to import the import. SQL file in the root directory before configuring the database. If the project does not build a database in cloud hosting, Tencent Yunyun database or its own mysql server can be used.

Step3 deploy the project

1. InCloud hosting consoleOn the service list page, select the required environment and click Create Service or Create service on this Private Network to create the service as prompted.

2. Select the service that you want to deploy and click the service name. The service details page is displayed.

3. Click New Version. In the New version window, upload the code ZIP package or select download from the code library.

4. After filling in the version configuration information, click Start Deployment. If the deployment succeeds, the status changes to Normal. If an error is reported, it changes to a specific error state.

5. After the deployment and traffic configuration are complete, the cloud hosting service automatically assigns a default domain name to your service. You can click Access Service to access your service page using the default domain name.

CLI Deployment

CloudBase Framework is an integrated front-end and back-end deployment tool developed by cloud development. You only need one command to deploy the tool.

Step1 setup CLI
npm install -g @cloudbase/cli@latest
Copy the code
Step2 deploy the project

For existing back-end projects, you can directly enter the following command in the project root command line window to complete deployment.

cloudbase
Copy the code

Authorize login as prompted, select the environment, and modify the configuration information. The successful deployment results are as follows:

After the deployment is successful, the default service entry is displayed and can be accessed by copying it to the browser.

conclusion

Using cloud hosting to deploy your own back-end projects, you don’t need to plan ahead for resource capacity, buy servers, install, operate, and scale your cluster management infrastructure. You can upload code or images and start deploying your applications at the click of a button. Cloud hosting also provides developers with highly available, automatically scalable back-end cloud services that are very convenient to use.

Author: XiaoLin, Evangelist of Cloud Development

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 group, latest information follow wechat official account [Tencent Cloud Development CloudBase]