头图

Deploy site apps with cloud hosting

CloudBase云开发
中文

Cloud hosting supports hosting containerized applications written in any language and framework. It can be used for cloud-integrated development of a variety of end applications (mini programs, official accounts, web applications, microservice applications, Flutter clients, etc.), then, how to use cloud hosting to implement confession wall applications?

Now, using cloud hosting can quickly deploy self-developed applications to the cloud, cloud hosting provides developers with high-availability , automatic elastic scaling back-end cloud services. It enables developers to focus on the implementation of business logic, which greatly increases development efficiency.

Product Capability

out of the box

Cloud hosting provides all the deployment server application infrastructure, you can write code according to your language preference, and efficiently build and deploy with DevOps workflow. No operation and maintenance management is required, freeing developers from all kinds of infrastructure work.

any language

Cloud hosting supports any language such as Java, PHP, NodeJS, Python, Go, etc., and provides framework templates such as Spring Boot, Express, Django, Laravel, etc., without the need for transformation and smooth migration of existing businesses to the cloud.

WeChat Gateway

Cloud hosting supports WeChat private protocol, HTTPS, WebSocket and other access methods, provides anti-data crawling, anti-DNS hijacking, anti-DDoS attack capabilities, WeChat users can access nearby, and have a faster and more stable secure network.

natural authentication

The WeChat private protocol automatically obtains login status information such as OpenID and UnionID; there is no need to maintain access_token and certificates, and the WeChat open interface can be called without authentication; no encryption and decryption are required, and the WeChat platform message push is quickly processed.

Extreme elasticity

Automatic expansion and contraction according to load, ultra-fine-grained resource control, and easy response to traffic changes. Billed by actual usage, accurate to 100 milliseconds. You can customize the configuration rules, set the permanent do not destroy, and eliminate the delay effect caused by cold start.

safe and stable

Based on elastic container and VPC network isolation, it provides application runtime security, fine-grained resource access permission control, and dual security system protection for WeChat and Tencent Cloud. The availability exceeds 99.99%, and the WeChat team provides professional guarantee.

Project Introduction

This is a very simple but very beautiful confession wall application developed in PHP. Users can publish and share confession cards. Author: Mr-Wu.

How to deploy

Cloud hosting console deployment

Step1 Download the source code

Project address: https://github.com/wangzhuolin/loveway-php (for cloud hosting version, the original repository can be found in readme.md).

Step2 Modify the configuration

Modify config.php in admin_user and admin_pass variables and MySQL database information.

Note: Before configuring the database, remember to import the import.sql file in the root directory. The project does not build a database in cloud hosting, you can use Tencent Cloud cloud database or your own mysql server.

Step3 Deploy the project

1. On cloud hosting console , select the corresponding environment, click "New Service" or "New Service under this Private Network", and follow the prompts to complete the service creation.

2. Select the service you want to deploy, and click the service name to enter the service details page.

3. Click "New Version", in the New Version window, upload the code zip package or choose to pull it from the code base.

4. After filling in the version configuration information, click "Start Deployment", the status will change to "Normal" if the deployment is successful. If there is an error, it will change to a specific error state.

5. After completing the deployment and traffic configuration, the cloud hosting automatically assigns a default domain name to your service. You can directly click "Access Service" to access your service page through this default domain name.

Deployment via CLI

CloudBase Framework is an integrated front-end and back-end deployment tool officially produced by Cloud Development, which can be deployed with just one command.

Step1 Install CLI
npm install -g @cloudbase/cli@latest
Step2 Deploy the project

For existing backend projects, you can directly enter the following command in the command line window of the project root directory to complete the deployment.

cloudbase

According to the prompt to authorize the login, select the environment, and modify the configuration information, the final successful deployment effect is as follows:

After the deployment is successful, the default service entry will be output, which can be accessed by copying it to the browser.

Summarize

Using cloud hosting deploy your own back-end projects means that you do not need to plan resource capacity in advance, purchase servers, or install, operate, and expand your cluster management infrastructure. You can start deploying applications with one click by uploading code or images. Cloud hosting also provides developers with high-availability , automatic elastic scaling back-end cloud services, which are very convenient to use.

Author: XiaoLin, Cloud Development Evangelist

阅读 756

小程序云开发技术专栏
云开发CloudBase官方技术专栏!微信 x 腾讯云联合提供的小程序·云开发服务,快速构建小程序、Web和移动...

云开发(Tencent CloudBase,TCB)是云端一体化的后端云服务 ,采用 serverless 架构,免去了移动应用构...

422 声望
435 粉丝
0 条评论

云开发(Tencent CloudBase,TCB)是云端一体化的后端云服务 ,采用 serverless 架构,免去了移动应用构...

422 声望
435 粉丝
文章目录
宣传栏