Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Starter Sinatra application setup for ActiveRecord

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 config
Octocat-spinner-32 contrib
Octocat-spinner-32 db
Octocat-spinner-32 lib
Octocat-spinner-32 public
Octocat-spinner-32 script
Octocat-spinner-32 vendor
Octocat-spinner-32 README.mdown
Octocat-spinner-32 Rakefile
Octocat-spinner-32 config.ru
Octocat-spinner-32 main.rb
README.mdown

Old Black Magic

What is this?

I got tired of creating new Sinatra applications that use ActiveRecord. I know there are alternatives out there but I wanted something really bare bones that I can just clone and work from whenever I need it.

Dependencies?

gem install sinatra activerecord sinatra-activerecord

What's included?

It's basically setup to handle connecting to databases under various environments using ActiveRecord. I also installed the query_analyzer plugin since I use that all the time when I'm in development mode.

I want to add/fix something.

By all means, go ahead. Just send me a pull request so I can check it out when you're done.

Credits

The unicorn script is derived from the one that was on the github blog post here: http://github.com/blog/517-unicorn

The unicorn init.d script is taken right out of the unicorn gem itself. I forget if I hacked it up or not.

Something went wrong with that request. Please try again.