nginx部署VuePress生成的静态博客
编译打包
yarn docs:build #编译打包
打包成功
nginx配置
location / {
root html/dist;
index index.html index.htm;
try_files $uri $uri/ /index.html;
}
启动Nginx
成功部署在Nginx
服务器下啦>_<
个人博客已部署在码云
国内码云访问比较快,选择部署在gitee上
yarn docs:build #编译打包
打包成功
location / {
root html/dist;
index index.html index.htm;
try_files $uri $uri/ /index.html;
}
成功部署在Nginx
服务器下啦>_<
国内码云访问比较快,选择部署在gitee上
举报文章
请选择举报类型
补充说明
0/200
上传截图
格式支持JPEG/PNG/JPG,图片不超过1.9M