Skip to content

Instantly share code, notes, and snippets.

@dynamis
Last active December 13, 2015 21:08
Show Gist options
  • Save dynamis/4975455 to your computer and use it in GitHub Desktop.
Save dynamis/4975455 to your computer and use it in GitHub Desktop.

GitHub Pages で独自ドメインのアプリを公開する

git clone https://github.com/USERNAME/app.example.jp.git
git checkout --orphan gh-pages
  • CNAME ファイルと index.html を作成
    • CNAME ファイルの中身は公開ドメイン名 app.example.jp だけを書いたテキストファイル
vi CNAME
vi index.html
git add .
git commit -a -m "First commit"
git push origin gh-pages
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment