Octopress+jekyllでの記事の書き方フロー

いつも忘れてググってしまうので、記事を書くための最低限のフローをメモしておきます。

0. sourceブランチにチェックアウト

$ git checkout source 

1. 新しい記事を作成 (alias be='bundle exec')

$ be rake new_post
Enter a title for your post: Lightest Weight Sinatra App Template for Heroku Deployment
mkdir -p source/_posts
Creating new post: source/_posts/2015-06-20-lightest-weight-sinatra-app-template-for-heroku-deployment.markdown

2. 記事を書く

$ be rake generate
## Generating Site with Jekyll
identical source/stylesheets/screen.css
Configuration file: /Users/totz/workspace/totzYuta.github.io/_config.yml
            Source: source
       Destination: public
      Generating...
                    done.

3. ローカルホストで確認

$ rake preview

4. デプロイ

$ be rake deploy

pushできない場合の対処法

http://qiita.com/takuma7/items/2d6f6e786eb6c0afbefb

5. 変更をcommit && push

$ git commit -m "Write a new post"
$ git push origin source

おわり

これでとりあえずは記事を更新できるようになった!

長らく放置していたので嬉しい。これからもっと更新していけるようがんばろう〜

僕のgithub pagesはいかです〜よろしかったら見てやってください、そして拙い英語を添削してやってください...

http://totzyuta.github.io/