Skip to content

Instantly share code, notes, and snippets.

@mikekelly
Created November 12, 2009 13:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mikekelly/232891 to your computer and use it in GitHub Desktop.
Save mikekelly/232891 to your computer and use it in GitHub Desktop.
dir structure:
/lib/
/tmp/
/views/
/public/
/config.ru
/blog.rb
--
config.ru looks like:
require 'dm-core'
DataMapper::setup(:default, ENV['DATABASE_URL'] || "sqlite3://#{Dir.pwd}/test.db")
require 'blog'
DataMapper.auto_upgrade!
map '/blog' do
run BlogApp
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment