#require 'pp'
require 'eee.rb'
require 'rubygems'
require 'sinatra'
require 'rack/cache'
require 'image_science'

###
# Cache

use Rack::Cache,
  :verbose     => true,
  :metastore   => 'file:/var/cache/rack/meta',
  :entitystore => 'file:/var/cache/rack/body'

###
# Thumbnail

require 'rack/thumbnailer'
use Rack::ThumbNailer,
  :cache_dir => '/tmp/rack/thumbnails'

###
# Sinatra App

root_dir = File.dirname(__FILE__)

set :environment, :development
set :root,        root_dir
set :app_root,    root_dir
set :app_file,    File.join(root_dir, 'eee.rb')
disable :run

run Sinatra::Application

#require 'pp'
require 'eee.rb'
require 'rubygems'
require 'sinatra'
require 'rack/cache'
require 'image_science'

###
# Cache

use Rack::Cache,
  :verbose     => true,
  :metastore   => 'file:/var/cache/rack/meta',
  :entitystore => 'file:/var/cache/rack/body'

###
# Thumbnail

require 'rack/thumbnailer'
use Rack::ThumbNailer

###
# Sinatra App

root_dir = File.dirname(__FILE__)

set :environment, :development
set :root,        root_dir
set :app_root,    root_dir
set :app_file,    File.join(root_dir, 'eee.rb')
disable :run

run Sinatra::Application

Use the default thumbnail directory
Use the default thumbnail directory
