In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly explains "how to release WeChat Mini Programs development online". The content of the explanation in the article is simple and clear, and it is easy to learn and understand. Please follow the editor's train of thought slowly and deeply. Let's study and learn "how to release WeChat Mini Programs Development online"!
Step 1: build a development environment
First of all, we need to build WeChat Mini Programs's development environment locally. That is, download developer tools. Wechat has officially launched an official version of IDE. Open the download page of the official website and choose according to your own operating system. When it is opened and run after installation, Wechat will be required to scan the code to log in. After that, you can see the page where you created the project. Choose to add a project, select none without AppID (if you scribble will report an error, then you may not be able to enter the project). After clicking "add Project", we will go to the debugging page of the development tool.
Step 2: download the source code of Mini Program
Next, we download the source code of Mini Program. You can choose to download directly from the link provided on the official website, or you can pull it from the Github warehouse of the Wechat team. It is recommended to pull it from the Github repository so that you can get the latest code in a timely manner.
Step 3: deploy server code in the cloud
Step 4: prepare the domain name and configure the certificate
If you already have Brother Ma's server and domain name, and have configured https, you can skip steps 4-6. In WeChat Mini Programs, all network requests are strictly restricted, and domain names and protocols that do not meet the conditions cannot be requested. To put it simply, your domain name must follow the https agreement. So you also need to apply for a certificate for your domain name. If you don't have a domain name, you can register a free domain name at Peanut Shell first, and then log in to Wechat public platform to configure a communication domain name.
Step 5: Nginx configure https
In WeChat Mini Programs's cloud example image, Nginx has been deployed, but the domain name, certificate and private key in the configuration still need to be modified. After the configuration is complete, reload the configuration file and restart Nginx.
Step 6: domain name resolution
We also need to add a domain name record to resolve the domain name to the CVM, so that the domain name can be used for https service. You can register a domain name in the peanut shell and add the host record through the peanut shell console. After the resolution takes effect, the domain name supports https access.
Step 7: start the server of Mini Program and enter the corresponding directory
If it is your own server, please go to the appropriate folder to start
Step 8: configure the Mini Program communication domain name
Next, open the Mini Program project in Wechat web developer tool, and change the communication domain host in the source file config to the domain name you applied for.
Thank you for your reading. the above is the content of "how to release WeChat Mini Programs Development online". After the study of this article, I believe you have a deeper understanding of the issue of how WeChat Mini Programs development can be released and put online. The specific use of the situation also needs to be verified in practice. Here is, the editor will push for you more related knowledge points of the article, welcome to follow!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.