Skip to content

A0 How to use

Levin Van edited this page Dec 7, 2016 · 7 revisions

mac或linux的同学,如果账户不具管理权限请加sudo

安装hexo

npm i hexo-cli -g

将o2team.github.io的源码拉到本地

拷贝源码

git clone git@github.com:o2team/o2team.github.io.git o2team

原来已拉过旧版代码,可切换至v2分支再拉取

安装npm包

npm install

国内加速:

PHANTOMJS_CDNURL=https://npm.taobao.org/dist/phantomjs npm i --registry=https://registry.npm.taobao.org --no-proxy

运行 hexo s --watch

预览

运行上述命令后,浏览器打开 http://localhost:4000 即可本地访问我们的网站

Clone this wiki locally