Sha256: 1b5d93173f27b0efadc35bbdba56cf6e2b426dfef83a55b3b0831ff128290c53
Contents?: true
Size: 624 Bytes
Versions: 27
Compression:
Stored size: 624 Bytes
Contents
#!/usr/bin/env rackup require 'utopia' require 'json' require 'rack/freeze' 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'] use Utopia::Controller, root: File.expand_path('pages', __dir__) use Utopia::Static, root: File.expand_path('pages', __dir__) # Serve dynamic content use Utopia::Content, root: File.expand_path('pages', __dir__) run lambda { |env| [404, {}, []] }
Version data entries
27 entries across 27 versions & 1 rubygems