今天还是要水下文章,这里说下,coding已经被腾讯收购了,所以叫Cloud Studio也是一样的
之所以使用Cloud Studio是因为简便,如果你有服务器的话可以不适用Cloud Studio
官网:Cloud Studio
自行注册
简单来说无非就几条命令,这里列一下,下面详细讲
npm install hexo-cli -g
hexo init Blog
cd Blog
npm install
hexo g
hexo d
注册完成之后先创建下工作空间
名称:必填,随意
预置:Nodejs
代码:空
创建
npm install hexo-cli -g
安装完成如下
hexo init blog
blog
目录cd blog
npm install
hexo g
hexo s
不过是cloud studio也看不到吧,这是多余的
git config --global user.name "你的名字"
git config --global user.email "邮箱地址"
ssh-keygen -t rsa -C "your_email@mail.com"
key文件在你的根目录.ssh
文件夹
id_rsa.pub
文件中的ssh key
填入仓库中
验证是否连接成功
ssh -T git@github.com
出现你的名字或者邮箱即可
_config.json
将其下Mottoi
改为你的用户名以及仓库名·记住仓库名必须为用户名.github.io
deploy:
type: git
repository: https://github.com/Mottoi/Mottoi.github.io.git
branch: master
hexo g
hexo d
大功告成,你可以在仓库查看你的文件了
评论 (0)