Module: J1AppCompress

Defined in:
lib/j1_app.rb

Overview

App in production mode

Class Method Summary collapse

Class Method Details

.siteObject



71
72
73
74
75
76
77
78
# File 'lib/j1_app.rb', line 71

def self.site
  Rack::Builder.new do
    use Rack::ShowExceptions                                                  # Middleware. Generate web-based error pages (for Rack)
    use Rack::Deflater                                                        # Middleware. Enable gzip compression for ALL web servers out of Rack
    use J1App::AuthManager                                                    # Middleware. Support authentication methods using OmniAuth      
    run J1App::SiteManager                                                    # Run J1App Manager to manage the (static) site as an (Rack-based) Web Application:
  end
end