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

Version Path
utopia-2.11.1 spec/utopia/performance_spec/config.ru
utopia-2.11.0 spec/utopia/performance_spec/config.ru
utopia-2.10.0 spec/utopia/performance_spec/config.ru
utopia-2.9.5 spec/utopia/performance_spec/config.ru
utopia-2.9.3 spec/utopia/performance_spec/config.ru
utopia-2.9.2 spec/utopia/performance_spec/config.ru
utopia-2.9.1 spec/utopia/performance_spec/config.ru
utopia-2.9.0 spec/utopia/performance_spec/config.ru
utopia-2.8.2 spec/utopia/performance_spec/config.ru
utopia-2.8.1 spec/utopia/performance_spec/config.ru
utopia-2.8.0 spec/utopia/performance_spec/config.ru
utopia-2.7.0 spec/utopia/performance_spec/config.ru
utopia-2.6.0 spec/utopia/performance_spec/config.ru
utopia-2.5.5 spec/utopia/performance_spec/config.ru
utopia-2.5.4 spec/utopia/performance_spec/config.ru
utopia-2.5.3 spec/utopia/performance_spec/config.ru
utopia-2.5.1 spec/utopia/performance_spec/config.ru
utopia-2.5.0 spec/utopia/performance_spec/config.ru
utopia-2.4.1 spec/utopia/performance_spec/config.ru
utopia-2.4.0 spec/utopia/performance_spec/config.ru