面朝大海,春暖花开

Quick Start

Create a new post

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
deploy:
- type: git
repo: # 像这样设置多个 git 仓库,`名称: 地址,分支`,逗号后面没有空格。
github: git@github.com:XXXXXX/XXXXXX.git,branch
coding: git@git.coding.net:XXXXXXX/XXXXXXX,coding-pages
message: Site updated by Hexo at {{ now('YYYY-MM-DD HH:mm:ss') }}.
- type: rsync
host: YOUR VPS IP # 你的服务器的 IP 地址
user: YOUR USERNAME # 你刚刚复制密钥的那个用户
root: YOUR DESTINATION # 你想把文件上传到哪里,比如我的是 `~/stackharbor.alynx.xyz/`
port: 22 # 这是 ssh 默认的端口,如果你修改了,这里也要改
args: --progress # 额外的 rsync 参数,我这里添加了一个进度条参数,你也可以不设置
delete: true # 是否删除旧的文件
verbose: true # 是否同步时显示详细状态
ignore_errors: false # 忽略错误

More info: Writing

Run server

1
$ hexo server

More info: Server

Generate static files

1
$ hexo generate

More info: Generating

Deploy to remote sites

1
$ hexo deploy

More info: Deployment

坚持原创技术分享,您的支持是我前进的动力!