module Lively::Environments::Application
Public Class Methods
load(configuration)
click to toggle source
# File lib/lively/environments/application.rb, line 26 def self.load(configuration) configuration.load(:application) configuration.environment(:lively, :application) do # The middleware stack for the application. # @attribute [Protocol::HTTP::Middleware] middleware do ::Protocol::HTTP::Middleware.build do |builder| builder.use Assets, root: File.expand_path('public', @root) builder.use Assets, root: File.expand_path('../../../public', __dir__) builder.use ::Application end end end end