hexo外网部署
hexo外网部署
在部署之前,了解一下hexo的常用命令
hexo 常用命令12345678910111213141516hexo new "My New Post" # 新建文章 hexo n "My New Post"hexo generate # 生成静态文件 hexo ghexo server # 启动本地服务器 hexo shexo deploy # 部署 hexo dhexo clean # 清除缓存 hexo c# 生成静态文件并启动本地服务器hexo g && hexo s# 生成静态文件并部署hexo g && hexo d
hexo github 部署首先,你需要有一个github账号,然后,在github上创建一个仓库,名称为username.github.io,其中username是你的github用户名。
然后安装一个插件 hexo-deployer-git ,执行命令:
1npm install hexo-deployer-git --save
在_config.yml文件中添加 ...
Hello World
Welcome to Hexo! This is your very first post. Check documentation for more info. If you get any problems when using Hexo, you can find the answer in troubleshooting or you can ask me on GitHub.
Quick StartCreate a new post1$ hexo new "My New Post"
More info: Writing
Run server1$ hexo server
More info: Server
Generate static files1$ hexo generate
More info: Generating
Deploy to remote sites1$ hexo deploy
More info: Deployment