网上关于部署到 coding 和 github 上的代码都很多, 不过关于 coding 的教程都有点问题. 导致访问首页会乱码, 其他页面无路径. 这是地址的问题.
原因是在于仓库 (项目) 的起名上
github 应该是: username.github.io(完毕)
coding 应该是: username(仓库名直接就是登录 coding 的用户名, 首页便会自动设为 http://username.coding.me/username ) 然后开启 Page 服务, 把部署来源改为 master 分支, 直接就 ok.
- deploy:
- type: git
- repo:
- coding: https://git.coding.net/centaur/centaur.git,master
- github: https://github.com/chaoxiongTian/chaoxiongtian.github.io
来源: http://www.jianshu.com/p/38b90a41c700