Module: Bridgetown::Rack
- Defined in:
- bridgetown-core/lib/bridgetown-core/rack/boot.rb,
bridgetown-core/lib/bridgetown-core/rack/logger.rb,
bridgetown-core/lib/bridgetown-core/rack/routes.rb,
bridgetown-core/lib/bridgetown-core/rack/loader_hooks.rb
Defined Under Namespace
Modules: LoaderHooks Classes: Logger, Routes
Class Attribute Summary collapse
Class Method Summary collapse
-
.boot ⇒ Object
Start up the Roda Rack application and the Zeitwerk autoloaders.
Class Attribute Details
.loaders_manager ⇒ Bridgetown::Utils::LoadersManager
18 19 20 |
# File 'bridgetown-core/lib/bridgetown-core/rack/boot.rb', line 18 def loaders_manager @loaders_manager end |
Class Method Details
.boot ⇒ Object
Start up the Roda Rack application and the Zeitwerk autoloaders. Ensure the Roda app is provided the preloaded Bridgetown site configuration. Handle any uncaught Roda errors.
24 25 26 27 28 29 30 31 |
# File 'bridgetown-core/lib/bridgetown-core/rack/boot.rb', line 24 def self.boot(*) self.loaders_manager = Bridgetown::Utils::LoadersManager.new(Bridgetown::Current.preloaded_configuration) Bridgetown::Current.preloaded_configuration.run_initializers! context: :server LoaderHooks.autoload_server_folder( File.join(Bridgetown::Current.preloaded_configuration.root_dir, "server") ) end |