Sha256: 51b0da2717dd67bc79146b63c2a1fd6cfa6a2d6f18b75f7e4ae9c44517e1d57d
Contents?: true
Size: 858 Bytes
Versions: 13
Compression:
Stored size: 858 Bytes
Contents
require 'active_support/all' require 'dotenv' require 'dry/system/container' require 'sequel' require_relative 'boot' module Inferno class Application < Dry::System::Container ::Inferno::Import = injector use :env, inferrer: -> { ENV.fetch('APP_ENV', :development).to_sym } Application.register('js_host', ENV.fetch('JS_HOST', '')) Application.register('async_jobs', ENV['ASYNC_JOBS'] != 'false') Application.register('inferno_host', ENV.fetch('INFERNO_HOST', 'http://localhost:4567')) configure do |config| config.root = File.expand_path('../../..', __dir__) config.default_namespace = 'inferno' config.system_dir = File.join('lib', 'inferno', 'config') config.bootable_dirs = [File.join('lib', 'inferno', 'config', 'boot')] config.auto_register = 'lib' end load_paths!('lib') end end
Version data entries
13 entries across 13 versions & 1 rubygems