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