Sha256: beb36fa5ca0911187bf68324996961fed17d9aff1c89bd3272c903611aab080f
Contents?: true
Size: 834 Bytes
Versions: 6
Compression:
Stored size: 834 Bytes
Contents
#!/usr/bin/env rackup require 'utopia' # 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
6 entries across 6 versions & 1 rubygems