Hexo

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 Start

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
创建一个新的提交
$ hexo new "My New Post"

Hexo启动
$ hexo server

pm2后台运行
$ pm2 stop all
$ pm2 start hexo_run js

生成静态页面
$ hexo generate

发布到远程站点
hexo deploy

//hexo_run.sh 命令
const { exec } = require('child_process')
exec('hexo server',(error, stdout, stderr) => {
if(error){
console.log('exec error: ${error}')
return
}
console.log('stdout: ${stdout}');
console.log('stderr: ${stderr}');


Hexo
http://example.com/2020/01/06/hello-world/
作者
优妮猫
发布于
2020年1月6日
许可协议