struct

Chronicle::Config

Inherits Struct < Value < Object

Strongly typed application runtime configuration

Constructors

new(environment : String = ENV.fetch("APP_ENV", "development"), host : String = ENV.fetch("APP_HOST", "127.0.0.1"), port : Int32 = (ENV.fetch("APP_PORT", "8080")).to_i, log_level : String = ENV.fetch("LOG_LEVEL", "INFO"), verbose : Bool = false, db_uri : String = "sqlite3://#{Storage::Database.default_db_path}", socket_path : String = Server::SocketServer.default_socket_path)
Source

Instance methods

db_uri
Source
environment
Source
host
Source
log_level
Source
port
Source
socket_path
Source
verbose?
Source