Introduction to Octopress at DRUG

0 views
644 views

Published on

Octopress - A blogging framework for hackers shown at Dolnośląska Ruby User Group #50

Published in: Technology
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
0
On SlideShare
0
From Embeds
0
Number of Embeds
0
Actions
Shares
0
Downloads
4
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

Introduction to Octopress at DRUG

  1. 1. Octopress A blogging framework for hackers Wojciech Langiewicz @ DRUG #50
  2. 2. Plan ● ● ● ● ● Jekyll + Octopress Installation Your first post Testing locally Deploy to GitHub Pages
  3. 3. Jekyll ● Static site generator (written in ruby) ~ $ gem install jekyll ~ $ jekyll new my-awesome-site ~ $ cd my-awesome-site ~/my-awesome-site $ jekyll serve # => Now browse to http://localhost:4000
  4. 4. Octopress ● ● ● ● ● ● Blog-aware static site generator Written in Ruby for Jekyll You write new posts as markdown files Whole blog consists only of static files Use plugins (eg: Disqus) for dynamic content Requires Ruby 1.9.3 http://octopress.org/
  5. 5. Installing Octopress git clone git://github.com/imathis/octopress.git octopress cd octopress gem install bundler rbenv rehash # If you use rbenv bundle install rake install http://octopress.org/docs/setup/
  6. 6. First blog post rake new_post["Hello From DRUG 50"] #edit newly created file in source/_posts, use markdown friendly editor rake generate rake preview #go to: http://localhost:4000 http://octopress.org/docs/blogging/
  7. 7. Deploy to GitHub pages #create github repo called: username.github.io rake setup_github_pages #enter: git@github.com:username/username.github.io.git rake generate rake preview #if needed rake deploy #blog goes go master branch #go to: http://username.github.io #commit your changes to ‘sources’ branch git add . git commit -m 'commit message' git push origin source http://octopress.org/docs/deploying/github/
  8. 8. Summary ● ● ● ● ● ● ● Multiple deployment options Insanely fast Very extensible with plugins Blog with your own editor, offline Easy to migrate from Wordpress Git and GitHub friendly See it live: http://wlangiewicz.com

×