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

Version Path
wd_sinatra-1.0.6 templates/config/sinatra_config.rb
wd_sinatra-1.0.5 templates/config/sinatra_config.rb
wd_sinatra-1.0.4 templates/config/sinatra_config.rb
wd_sinatra-1.0.3 templates/config/sinatra_config.rb
wd_sinatra-1.0.2 templates/config/sinatra_config.rb
wd_sinatra-1.0.1 templates/config/sinatra_config.rb
wd_sinatra-1.0.0 templates/config/sinatra_config.rb
wd_sinatra-0.3.2 templates/config/sinatra_config.rb
wd_sinatra-0.3.1 templates/config/sinatra_config.rb
wd_sinatra-0.3.0 templates/config/sinatra_config.rb
wd_sinatra-0.2.6 templates/config/sinatra_config.rb
wd_sinatra-0.2.5 templates/config/sinatra_config.rb
wd_sinatra-0.2.4 templates/config/sinatra_config.rb
wd_sinatra-0.2.3 templates/config/sinatra_config.rb
wd_sinatra-0.2.2 templates/config/sinatra_config.rb
wd_sinatra-0.2.1 templates/config/sinatra_config.rb
wd_sinatra-0.2.0 templates/config/sinatra_config.rb