Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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