Hexo-常用命令

櫻花🌸

常用命令

npm install hexo -g #安裝Hexo
npm update hexo -g #升級
hexo init #初始化博客

命令簡寫

hexo n “我的博客” == hexo new “我的博客” #新建文章
hexo g == hexo generate #生成
hexo s == hexo server #啓動服務預覽
hexo d == hexo deploy #部署

hexo server #Hexo會監視文件變動並自動更新,無須重啓服務器
hexo server -s #靜態模式
hexo server -p 5000 #更改端口
hexo server -i 192.168.1.1 #自定義 IP
hexo clean #清除緩存,若是網頁正常情況下可以忽略這條命令

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章