nginx部署VuePress生成的静态博客

编译打包

	yarn  docs:build #编译打包

打包成功
生成静态网页
dist

nginx配置

 location / {
           root   html/dist;
           index  index.html index.htm;
		   try_files $uri $uri/ /index.html; 
       }

dist位置

启动Nginx

效果
成功部署在Nginx服务器下啦>_<

个人博客已部署在码云

国内码云访问比较快,选择部署在gitee上

【海边的小溪鱼gitee.io博客】

【gitee仓库源码】

【github仓库源码】

Logo

前往低代码交流专区

更多推荐