lib/utopia/setup/config.ru in utopia-0.10.0 vs lib/utopia/setup/config.ru in utopia-0.11.0

- old
+ new

@@ -2,40 +2,31 @@ UTOPIA_ENV = (ENV['UTOPIA_ENV'] || ENV['RACK_ENV'] || :development).to_sym $LOAD_PATH << File.join(File.dirname(__FILE__), "lib") # It is recommended that you always explicity specify the version of the gem you are using. -gem 'utopia', $UTOPIA_VERSION +gem 'utopia', "= $UTOPIA_VERSION" require 'utopia/middleware/all' require 'utopia/tags/env' -gem 'rack-contrib' -require 'rack/contrib' - -# Utopia relies heavily on accurately caching resources +# Utopia relies on effectively caching resources: gem 'rack-cache' require 'rack/cache' if UTOPIA_ENV == :development use Rack::ShowExceptions else use Utopia::Middleware::ExceptionHandler, "/errors/exception" - - # Fill out these details to receive email reports of exceptions when running in a production environment. - # use Rack::MailExceptions do |mail| - # mail.from $MAIL_EXCEPTIONS_FROM - # mail.to $MAIL_EXCEPTIONS_TO - # mail.subject "Website Error: %s" - # end + + # You might want to use the Rack::MailExceptions middleware to get notifications about problems. end use Rack::ContentLength use Utopia::Middleware::Logger use Utopia::Middleware::Redirector, { :strings => { '/' => '/welcome/index', - '/utopia' => 'http://www.oriontransfer.co.nz/software/utopia/demo' }, :errors => { 404 => "/errors/file-not-found" } }