A example Sinatra blog
Ruby CSS
Latest commit 3180c85 Mar 29, 2014 @maccman Merge pull request #3 from javierjulio/dryify-settings
DRYify settings and reuse within sub apps
Permalink
Failed to load latest commit information.
app
config first commit Dec 18, 2013
lib/tasks Remove sprockets cache lib as its been replaced with gem. Mar 27, 2014
posts/published add published/draft folders Jan 26, 2014
public Update styling Jan 1, 2014
vendor/assets Update styling Jan 1, 2014
.gitignore first commit Dec 18, 2013
Gemfile Add @maccman's sprockets-memcache-store gem. Mar 27, 2014
Gemfile.lock Add @maccman's sprockets-memcache-store gem. Mar 27, 2014
LICENSE Better README Dec 18, 2013
Procfile first commit Dec 18, 2013
README.md
Rakefile first commit Dec 18, 2013
app.rb Merge pull request #3 from javierjulio/dryify-settings Mar 29, 2014
config.ru

README.md

Sinatra Example Blog

This is a good example of structuring a Sinatra app. Feel free to clone it, browse the source, customize it and use it as your own blog.

Good examples of the following:

  • Using Sinatra routes as middleware
  • GZip and caching
  • RSS feed of posts
  • Sprockets and asset management
  • Markdown and Erb
  • Unicorn and Heroku
  • Stylus

Demo here http://sinatra-example-blog.herokuapp.com

Running

bundle install
thin start

Heroku 123

git clone git@github.com:maccman/sinatra-blog.git
cd sinatra-blog

heroku create myblog
heroku labs:enable user-env-compile
heroku addons:add memcachier:dev

git push heroku master