Skip to content

Instantly share code, notes, and snippets.

@ravidsrk
Forked from ywatai/gist:1964983
Created June 10, 2012 17:19
Show Gist options
  • Save ravidsrk/2906674 to your computer and use it in GitHub Desktop.
Save ravidsrk/2906674 to your computer and use it in GitHub Desktop.
Octpress on github pages: setup
% rbenv install 1.9.2-p290
% rbenv rehash
% git clone https://github.com/imathis/octopress.git
% cd octopress
% rbenv local 1.9.2-p290
% ruby -v
% gem install bundler
% bundle install
% rake install
(in /Users/ywatai/octopress)
## Copying classic theme into ./source and ./sass
mkdir -p source
cp -r .themes/classic/source/. source
mkdir -p sass
cp -r .themes/classic/sass/. sass
mkdir -p source/_posts
mkdir -p public
% rake setup_github_pages
(in /Users/ywatai/octopress)
Enter the read/write url for your repository: [email protected]:ywatai/ywatai.github.com.git
Added remote [email protected]:ywatai/ywatai.github.com.git as origin
Set origin as default remote
Master branch renamed to 'source' for committing your blog source files
rm -rf _deploy
mkdir _deploy
cd _deploy
Initialized empty Git repository in /Users/ywatai/octopress/_deploy/.git/
[master (root-commit) 27df8eb] Octopress init
1 files changed, 1 insertions(+), 0 deletions(-)
create mode 100644 index.html
cd -
---
## Now you can deploy to http://ywatai.github.com with `rake deploy` ##
% rake generate
(in /Users/ywatai/octopress)
## Generating Site with Jekyll
directory source/stylesheets/
create source/stylesheets/screen.css
Configuration from /Users/ywatai/octopress/_config.yml
Building site: source -> public
Successfully generated site: source -> public
% rake deploy
(in /Users/ywatai/octopress)
## Deploying branch to Github Pages
rm -rf _deploy/index.html
## copying public to _deploy
cp -r public/. _deploy
cd _deploy
## Commiting: Site updated at 2012-03-03 08:22:10 UTC
:
## Pushing generated _deploy website
Counting objects: 79, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (72/72), done.
Writing objects: 100% (79/79), 179.60 KiB, done.
Total 79 (delta 1), reused 0 (delta 0)
To [email protected]:ywatai/ywatai.github.com.git
* [new branch] master -> master
## Github Pages deploy complete
cd -
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment