Sha256: ccc4dd59e0086679107336243e981750ef1f045435fe86e87a932947bbbc5c4d
Contents?: true
Size: 548 Bytes
Versions: 4
Compression:
Stored size: 548 Bytes
Contents
# frozen_string_literal: true # Released under the MIT License. # Copyright, 2024, by Samuel Williams. require 'rack/builder' require_relative '../server' module Falcon module Environment # Provides an environment for hosting loading a Rackup `config.ru` file. module Rackup def rackup_path File.expand_path('config.ru', root) end def rack_app ::Protocol::Rack::Adapter.parse_file(rackup_path) end def middleware ::Falcon::Server.middleware(rack_app, verbose: verbose, cache: cache) end end end end
Version data entries
4 entries across 4 versions & 1 rubygems