hexo 新建/启动/部署命令

一、新建一篇文章json

hexo new "文章名称"

 

二、启动服务器。默认状况下,访问网址为: http://localhost:4000/缓存

hexo s

 

三、部署服务器

(1)清除缓存文件 (db.json) 和已生成的静态文件 (public)。hexo

hexo clean

(2)生成静态文件。网站

hexo g

(3)部署网站。部署以前预先生成静态文件,执行第二步 hexo gcode

hexo d

 

【注】官方文档blog

相关文章
相关标签/搜索