当前位置:网站首页>Uniapp development, packaged as H5 and deployed to the server
Uniapp development, packaged as H5 and deployed to the server
2022-07-06 00:21:00 【Ma Xiaotiao's coding advanced road】
Front end use uniapp After the development project is completed , Need to package the page , Generate H5 Static files for , Deploy on the server .
In this way, the server link address , You can click to access directly on your mobile phone .
The whole steps of packaging are as follows :
One 、 Click on the menu bar “ issue ”, Click Select “ Website -PC Web Or cell phone H5”,
Two 、 Fill in the website title and website domain name / Server's IP Address .
( This address is the address where the static files are stored after the project is packaged )
3、 ... and 、 Click to enter manifest.json Of h5 In the configuration , Configure some information according to your own situation .
Be sure to pay attention to the configuration “ The basic path of operation ”, If a blank page or static file appears 404 The situation of , It may be because this path is not configured .
Four 、 Click release , The console compiles automatically . The following prompt appears , The compilation is successful :
5、 ... and 、 Click on the red box in the image above , You can see the packed static page .( Just put this h5 Compress the file , Just send it to the back end )
If you need to upload it to the server by yourself , Continue with the following steps .
6、 ... and 、 Get the address information of the server first , Find a tool , Connect to the server of the project , Go to the root directory of the server .
What I use here is ftp Tools . Create a new one under the root directory aofan Folder , Then put the... In the figure above static The folder and index.html Copy it in .
OK, At this time, the deployment has been successful .
7、 ... and 、 Open the browser , enter server ip Address , Visit index.html The content of .
Be careful : The path names of these three places must be consistent .
1: The basic running path of the configuration at the time of packaging
2: Static files are stored under the root directory of the server static and index.html
3: The access path in the browser
边栏推荐
- uniapp开发,打包成H5部署到服务器
- [binary search tree] add, delete, modify and query function code implementation
- Hudi of data Lake (1): introduction to Hudi
- wx. Getlocation (object object) application method, latest version
- Hudi of data Lake (2): Hudi compilation
- Huawei equipment is configured with OSPF and BFD linkage
- 关于结构体所占内存大小知识
- FFMPEG关键结构体——AVFrame
- 电机的简介
- 时区的区别及go语言的time库
猜你喜欢
OS i/o devices and device controllers
小程序技术优势与产业互联网相结合的分析
[designmode] Decorator Pattern
Choose to pay tribute to the spirit behind continuous struggle -- Dialogue will values [Issue 4]
Go learning --- structure to map[string]interface{}
单商户V4.4,初心未变,实力依旧!
Browser local storage
认识提取与显示梅尔谱图的小实验(观察不同y_axis和x_axis的区别)
Teach you to run uni app with simulator on hbuilderx, conscience teaching!!!
notepad++正则表达式替换字符串
随机推荐
Global and Chinese markets of POM plastic gears 2022-2028: Research Report on technology, participants, trends, market size and share
提升工作效率工具:SQL批量生成工具思想
Ffmpeg learning - core module
OS i/o devices and device controllers
Single merchant v4.4 has the same original intention and strength!
Teach you to run uni app with simulator on hbuilderx, conscience teaching!!!
多线程与高并发(8)—— 从CountDownLatch总结AQS共享锁(三周年打卡)
小程序技术优势与产业互联网相结合的分析
MySQL global lock and table lock
Notepad + + regular expression replace String
AtCoder Beginner Contest 254【VP记录】
如何利用Flutter框架开发运行小程序
Knowledge about the memory size occupied by the structure
Go learning --- structure to map[string]interface{}
《编程之美》读书笔记
Configuring OSPF GR features for Huawei devices
Location based mobile terminal network video exploration app system documents + foreign language translation and original text + guidance records (8 weeks) + PPT + review + project source code
uniapp开发,打包成H5部署到服务器
FFMPEG关键结构体——AVFormatContext
There is no network after configuring the agent by capturing packets with Fiddler mobile phones