Sha256: 9aa55613e962b057e2d49fdf8ac75e9f595ea8f372a253af86b7377cf80f2ee6

Contents?: true

Size: 565 Bytes

Versions: 7

Compression:

Stored size: 565 Bytes

Contents

# Setup default encoding:
Encoding.default_external = Encoding::UTF_8
Encoding.default_internal = Encoding::UTF_8

# Load environment variables:
environment_path = File.expand_path('environment.yaml', __dir__)
if File.exist? environment_path
	require 'yaml'
	ENV.update(YAML.load_file(environment_path))
end

# Setup the server environment:
RACK_ENV = ENV.fetch('RACK_ENV', :development).to_sym unless defined?(RACK_ENV)

# Allow loading library code from lib directory:
$LOAD_PATH << File.expand_path('../lib', __dir__)

# Load utopia framework:
require 'utopia'

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
utopia-1.7.1 setup/site/config/environment.rb
utopia-1.6.13 setup/site/config/environment.rb
utopia-1.6.12 setup/site/config/environment.rb
utopia-1.6.11 setup/site/config/environment.rb
utopia-1.6.10 setup/site/config/environment.rb
utopia-1.6.9 setup/site/config/environment.rb
utopia-1.6.8 setup/site/config/environment.rb