Created
October 12, 2011 09:42
-
-
Save vlpeng/1280760 to your computer and use it in GitHub Desktop.
A note for Octopress
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
===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
very useful. thanks. :)