Skip to content

Instantly share code, notes, and snippets.

@og-shawn-crigger
Forked from vlpeng/Octopress Blogging
Created July 28, 2012 06:14
Show Gist options
  • Save og-shawn-crigger/3192055 to your computer and use it in GitHub Desktop.
Save og-shawn-crigger/3192055 to your computer and use it in GitHub Desktop.
A note for Octopress
===Install Octopress===
git clone git://github.com/imathis/octopress.git
cd octopress
gem install bundler rake --no-rdoc --no-ri
bundle install
rake install
===Start Blogging===
rake new_post["title"]
rake generate
rake watch
rake preview
===Deploy Github===
rake setup_github_pages
[email protected]:name/Repository.git
rake generate
rake deploy
git add .
git commit -am 'your message'
git push origin source
===Create CNAME in github===
# in your name server, add below
A blog.octopress.com 207.97.227.245
# Go to source folder and create CNAME files which contain your domain name (without http://)
blog.octopress.com
===Deploy Heroku===
gem install heroku --no-rdoc --no-ri
heroku create
git config branch.master.remote heroku
rake generate
git add .
git commit -m 'site updated'
git push heroku master
# Refer http://octopress.org/docs/deploying/heroku/
===Create CNAME in Heroku===
# Ensure you have activated your credit card registration in Heroku
heroku addons:add custom_domains:basic
heroku domains:add blog.octopress.org
# http://devcenter.heroku.com/articles/custom-domains
# Go to your DNS console and add below a-records:
A blog.octopress.com 75.101.163.44
A blog.octopress.com 75.101.145.87
A blog.octopress.com 174.129.212.2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment