1. install
http://islamismailov.com/blog/2012/12/31/octopress-on-mac-os-x-with-homebrew/
2. setup
http://zerodie.github.com/blog/2012/01/19/octopress-github-pages/
3.troubleshooting
| http://stackoverflow.com/questions/12060903/github-error-repository-not-found-when-installing-octopress assuming you have installed ruby 1.9.3 - create repo on github as username.github.com
- cd your_working_dir
- rake install / rake install['theme_name']
- rake setup_github_pages this will ask to write repo name. Do not add ".git" e.g. git@github.com:username/username.github.com this is correct
- now add your remote repo, check available repo using git remote -v octopress git://github.com/imathis/octopress.git (fetch) octopress git://github.com/imathis/octopress.git (push)
- add your repo git remote add origin git@github.com:username/username.github.com.git
- Rename branch master to source, because github pages publishes only source branch git branch
- master git branch -m master source git branch
- source
- time to preview rake preview open browser and goto localhost:4000
- if all is fine then push to github
- rake generate git add . git commit -m "first blog" git push origin source rake deploy
|
沒有留言:
張貼留言