introduction to octopress at drug

8

Click here to load reader

Upload: wojciech-langiewicz

Post on 07-May-2015

525 views

Category:

Technology


3 download

DESCRIPTION

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

TRANSCRIPT

Page 1: Introduction to Octopress at DRUG

OctopressA blogging framework for hackersWojciech Langiewicz @ DRUG #50

Page 2: Introduction to Octopress at DRUG

Plan

● Jekyll + Octopress● Installation● Your first post● Testing locally● Deploy to GitHub Pages

Page 3: Introduction to Octopress at DRUG

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

Page 4: Introduction to Octopress at DRUG

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/

Page 5: Introduction to Octopress at DRUG

Installing Octopressgit 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/

Page 6: Introduction to Octopress at DRUG

First blog postrake 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/

Page 7: Introduction to Octopress at DRUG

Deploy to GitHub pages#create github repo called: username.github.io

rake setup_github_pages

#enter: [email protected]: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/

Page 8: Introduction to Octopress at DRUG

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