Team blog install tutorial
team-blog安装写作部署基本流程,初期可能需要适应一下,学几个新的命令,熟练了之后写起来还是蛮舒服的
本机安装Hexo
参考hexo安装教程
去coding.net注册自己的账号,并添加ssh-key
注册完成后,彩云 @徐金良 告诉我你的用户名
我会把你加到blog项目里
添加成功后再进行以下步骤
clone blog repo
1 | $ git clone git@git.coding.net:shinemo_ios/shinemo_ios.git ~/iOS-team-blog |
to blog dir
1 | $ cd ~/iOS-team-blog |
安装依赖
#####注意不要用sudo安装, 否则可能会引起其他问题.
1 | $ npm install hexo-deployer-git --save |
错误处理
错误1
1 | In file included from ../src/binding.cpp:3: |
执行 brew install libsass 后重试
错误2
1 | dyld: lazy symbol binding failed: Symbol not found: _sass_make_boolean |
执行 npm install node-sass 后重试
错误3
1 | rm: ./Release/.deps/Release/obj.target/fse/fsevents.o.d.raw: No such file or directory |
执行 npm install fsevents 后重试.
写文章
1 | $ hexo n "title" |
写文章使用markdown格式,参考markdown教程
查看文章效果
本地启动hexo server
1 | $ hexo s |
确认文章效果符合自己的预期
提交代码
1 | $ git commit -s |
1 | $ git push origin master |
部署blog
1 | hexo g |
1 | hexo d |
查看最终效果
浏览器打开zxios.com查看