当前位置:网站首页>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
边栏推荐
- QT -- thread
- LeetCode 6005. The minimum operand to make an array an alternating array
- Browser local storage
- 剖面测量之提取剖面数据
- Date类中日期转成指定字符串出现的问题及解决方法
- Atcoder beginer contest 258 [competition record]
- What are Yunna's fixed asset management systems?
- After summarizing more than 800 kubectl aliases, I'm no longer afraid that I can't remember commands!
- About the slmgr command
- 云呐|固定资产管理系统主要操作流程有哪些
猜你喜欢
Problems encountered in the database
Configuring OSPF load sharing for Huawei devices
数据库遇到的问题
XML configuration file (DTD detailed explanation)
notepad++正則錶達式替換字符串
FFT learning notes (I think it is detailed)
Single merchant v4.4 has the same original intention and strength!
Ffmpeg learning - core module
notepad++正则表达式替换字符串
行列式学习笔记(一)
随机推荐
Yolov5、Pycharm、Anaconda环境安装
AtCoder Beginner Contest 258【比赛记录】
About the slmgr command
Global and Chinese markets of universal milling machines 2022-2028: Research Report on technology, participants, trends, market size and share
FFmpeg抓取RTSP图像进行图像分析
State mode design procedure: Heroes in the game can rest, defend, attack normally and attack skills according to different physical strength values.
7.5 decorator
【QT】Qt使用QJson生成json文件并保存
Senparc. Weixin. Sample. MP source code analysis
认识提取与显示梅尔谱图的小实验(观察不同y_axis和x_axis的区别)
Global and Chinese markets of POM plastic gears 2022-2028: Research Report on technology, participants, trends, market size and share
Mysql - CRUD
Global and Chinese markets for hinged watertight doors 2022-2028: Research Report on technology, participants, trends, market size and share
常用API类及异常体系
7.5 simulation summary
Transport layer protocol ----- UDP protocol
7.5模拟赛总结
Leetcode:20220213 week race (less bugs, top 10% 555)
Configuring OSPF GR features for Huawei devices
The difference of time zone and the time library of go language