Hexo使用方法

Hexoインストール

# npm install -g hexo

雛形作成

# cd (ディレクトリ)
# hexo init (サイト名)

モジュールインストール

# cd (サイト名)
# npm install

ローカルWEBサーバ起動

# hexo server

ローカル動作確認
http://localhost:4000/

GitHub Pagesへデプロイ

デプロイツールインストール

npm install hexo-deployer-git –save

設定ファイル編集

_config.yml

deploy:
 type:git
 repo https://office-yone@github.com/office-yone/office-yone.github.io.git
 branch: master

リモートリポジトリにデプロイ

hexo deploy -g

リモートリポジトリ動作確認
github pagesをブラウザで表示
https://office-yone.github.io/index.html

PHP

前の記事

PHP Composer
CIツール

次の記事

Git GitHub利用方法