当前位置:网站首页>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
边栏推荐
- How much do you know about the bank deposit business that software test engineers must know?
- Hudi of data Lake (2): Hudi compilation
- 硬件及接口学习总结
- 云呐|公司固定资产管理系统有哪些?
- 7.5 simulation summary
- MySql——CRUD
- Senparc. Weixin. Sample. MP source code analysis
- FFMPEG关键结构体——AVCodecContext
- Shardingsphere source code analysis
- 行列式学习笔记(一)
猜你喜欢
软件测试工程师必会的银行存款业务,你了解多少?
Transport layer protocol ----- UDP protocol
GD32F4xx uIP协议栈移植记录
[designmode] composite mode
选择致敬持续奋斗背后的精神——对话威尔价值观【第四期】
如何解决ecology9.0执行导入流程流程产生的问题
FFMPEG关键结构体——AVCodecContext
Gavin teacher's perception of transformer live class - rasa project actual combat e-commerce retail customer service intelligent business dialogue robot system behavior analysis and project summary (4
Calculate sha256 value of data or file based on crypto++
N1 # if you work on a metauniverse product [metauniverse · interdisciplinary] Season 2 S2
随机推荐
LeetCode 6005. The minimum operand to make an array an alternating array
Wechat applet -- wxml template syntax (with notes)
关于slmgr命令的那些事
Zhuan: in the future, such an organization can withstand the risks
【在线聊天】原来微信小程序也能回复Facebook主页消息!
PHP determines whether an array contains the value of another array
18. (ArcGIS API for JS) ArcGIS API for JS point collection (sketchviewmodel)
The difference of time zone and the time library of go language
USB Interface USB protocol
软件测试工程师必会的银行存款业务,你了解多少?
MySQL functions
FFMPEG关键结构体——AVCodecContext
Notepad + + regular expression replace String
MySql——CRUD
Huawei equipment is configured with OSPF and BFD linkage
Room cannot create an SQLite connection to verify the queries
【QT】Qt使用QJson生成json文件并保存
Browser local storage
从底层结构开始学习FPGA----FIFO IP核及其关键参数介绍
GD32F4xx uIP协议栈移植记录