linux
使用nginx
部署element-plus
文档
下载文档
文档地址
选择gh-pages
分支进行clone
这里选择的服务器地址是 /data/web
, 可以根据自己的需求自定义地址
配置 nginx
打开nginx.conf
, 添加一个新的端口
http {
...
# element-plus 官网
server {
listen 4396;
server_name localhost;
location / {
root /data/web/element-plus/;
index index.html index.htm;
}
error_page 500 502 503 504 /50x.html;
location = /50x.html {
root html;
}
}
...
}
配置好之后, 重启即可
效果
输入服务器地址192.168.13.14:4396
后, 会自动添加/zh-CN/