1.2托管hexo

托管方式

1.github

找到根目录下的 _config.yml文件(格式要写对)

1
2
3
4
5
6
deploy:
type: git
repository:
github: 地址
coding: 地址
branch: master

hexo -d 上传代码

错误:ERROR Deployer not found: git

1
npm install hexo-deployer-git --save

项目仓库选择设置,左侧选择page

完后就可以看见访问地址了

2.coding

创建项目,创建代码仓库,复制ssh信息(前提是将ssh生成并且放在coding设置里面)

修改_config.yml文件。

hexo -d 上传代码
找到持续部署,选择网站托管

完后需要一些乱七八糟的东西,都写一下

新建网站,确定,完后等待部署完成

完后生成一个特别长的网站,访问就行了

错误

Hexo d 的时候出现了错误

相同的:

github:ssh写错了

Coding:没有生成ssh钥匙