Sha256: fef62fe211953fee2bb72be0f28dc287aaac30c05afdcbdbea2cd728663a40c4
Contents?: true
Size: 855 Bytes
Versions: 10
Compression:
Stored size: 855 Bytes
Contents
#!/usr/bin/env rackup require 'utopia' require 'rack/cache' # use Rack::ContentLength use Utopia::ContentLength use Utopia::Redirection::Rewrite, '/' => '/welcome/index' use Utopia::Redirection::DirectoryIndex use Utopia::Redirection::Errors, 404 => '/errors/file-not-found' # use Utopia::Localization, # :default_locale => 'en', # :locales => ['en', 'de', 'ja', 'zh'], # :nonlocalized => ['/_static/', '/_cache/'] use Utopia::Controller, root: File.expand_path('pages', __dir__), cache_controllers: true use Utopia::Static, root: File.expand_path('pages', __dir__) # Serve dynamic content use Utopia::Content, root: File.expand_path('pages', __dir__), cache_templates: true, tags: { 'deferred' => Utopia::Tags::Deferred, 'override' => Utopia::Tags::Override, 'node' => Utopia::Tags::Node, } run lambda { |env| [404, {}, []] }
Version data entries
10 entries across 10 versions & 1 rubygems