introduction to octopress at drug
DESCRIPTION
Octopress - A blogging framework for hackers shown at Dolnośląska Ruby User Group #50TRANSCRIPT
OctopressA blogging framework for hackersWojciech Langiewicz @ DRUG #50
Plan
● Jekyll + Octopress● Installation● Your first post● Testing locally● Deploy to GitHub Pages
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
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/
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/
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/
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/
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