2013-06-02
Tags: Octopress, GithubPages
git config --global push.default current
git branch --set-upstream source origin/source
rake new_post["post name"]
source/_posts/YYYY-MM-DD-post-name.markdown
rake new_page[about]
rake new_page[about/index.markdown]
=> ${SITE}/about/rake generate
# Generates posts and pages into the public directoryrake watch
# Watches source/ and sass/ for changes and regeneratesrake preview
# Watches, and mounts a webserver at http://localhost:4000source
rake new_post["My Post"]
# may need to do in correct shell (for me, bash instead of zsh)./source/_posts/YYYY-MM-DD-my-post.markdown
rake generate; rake watch; rake preview
until satisfied)git add .; git commit -m "My Post"
git push origin source
rake deploy