How to run Mini Program on CVM
This article introduces the knowledge of "how the cloud server runs Mini Program". In the operation of actual cases, many people will encounter such a dilemma. Then let the editor lead you to learn how to deal with these situations. I hope you can read it carefully and be able to achieve something!
1. Prepare domain name and certificate
Mini Program backend service needs to be accessed through HTTPS. Before you start, prepare the domain name and SSL certificate.
2. Domain name resolution
After the domain name is purchased, you need to resolve the domain name to the CVM. The IP of the CVM is your CVM IP address. It will take some time for the domain name to be set and resolved. Check whether the domain name is valid by using the ping command. If the information returned by the ping command contains the parsed IP address you set, the resolution is successful.
3. Build the development environment of Mini Program
Before you start to build your Mini Program server, you need to complete the construction of the client Mini Program development environment.
4. Configure Mini Program server information
After logging in to the Wechat public platform, go to Settings-Development Settings-modify the server domain name. After the identity verification is completed by scanning the code, enter the domain name address prepared in the previous step for both request and socket legal domain names. When the configuration is complete, click Save and submit.
After downloading the source code, extract it to the local working directory. After downloading the development tool, install and start it, and then log in with the scan code. After logging in, select the local Mini Program project to add the project.
This is the end of the introduction to "how a CVM runs Mini Program". Thank you for reading. If you want to know more about the industry, you can follow the website, the editor will output more high-quality practical articles for you!