Skip to content

Instantly share code, notes, and snippets.

@onigra
Last active December 16, 2015 18:09
Show Gist options
  • Save onigra/5476025 to your computer and use it in GitHub Desktop.
Save onigra/5476025 to your computer and use it in GitHub Desktop.

octopress導入 http://blog.glidenote.com/blog/2011/11/07/install-octopress-on-github/

h2. clone

cd ~
git clone git://github.com/imathis/octopress.git octopress
cd octopress
git checkout -b master

h2. rbenvのバージョンが違うと怒られた

.rbenv-versionってファイルを編集したらコマンド通った

vi .rbenv-version

# 1.9.3-p194 を 1.9.3-p392 に修正

h2. bundle install

bundle install --path vendor/bundle

h3. gitignore修正

vi .gitignore
vendor/bundle

h2. テーマの導入

git clone git://github.com/lucaslew/whitespace.git .themes/whitespace
bundle exec rake install['whitespace']

h2. github pagesの設定

bundle exec rake setup_github_pages

h2. ブログ作成

bundle exec rake generate

h2. デプロイ

bundle exec rake deploy
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment