Sha256: 0c1bd2b281b9b5fee7bb01d21d5714645eaccd7b77f5972882bf94a57333847e
Contents?: true
Size: 603 Bytes
Versions: 17
Compression:
Stored size: 603 Bytes
Contents
set :environment, RACK_ENV set :root, WDSinatra::AppLoader.root_path set :app_file, __FILE__ set :public_folder, File.join(WDSinatra::AppLoader.root_path, "public") # Checks on static files before dispatching calls enable :static # enable rack session enable :session set :raise_errors, false # enable that option to run by calling this file automatically (without using the config.ru file) # enable :run use Rack::ContentLength # Store the caught exception in the rack env so it can be used # by 3rd party apps like airbrake. error(::Exception) do |exception| @env['rack.exception'] = exception end
Version data entries
17 entries across 17 versions & 1 rubygems