module EdgeAI

Defined in:

config.cr
constants.cr
interface.cr:4
interface.cr:77

Constant Summary

CLIP_PATH = ENV["CLIP_PATH"]? || "./clips"
COOKIE_SESSION_KEY = ENV["COOKIE_SESSION_KEY"]? || "_spider_gazelle_"
COOKIE_SESSION_SECRET = ENV["COOKIE_SESSION_SECRET"]? || "4f74c0b358d5bab4000dd3c75465dc2c"
DEFAULT_HOST = ENV["SG_SERVER_HOST"]? || "127.0.0.1"
DEFAULT_PORT = (ENV["SG_SERVER_PORT"]? || 3000).to_i
DEFAULT_PROCESS_COUNT = (ENV["SG_PROCESS_COUNT"]? || 1).to_i
ENVIRONMENT = ENV["SG_ENV"]? || "development"
IS_PRODUCTION = ENVIRONMENT == "production"
Log = ::Log.for(NAME)
LOG_BACKEND = ActionController.default_backend
NAME = "Edge-AI"
PIPELINE_CONFIG = "./config/config.yml"
PIPELINE_STATUS = "./config/"
REPLAY_CONFIGURE_RAMDISK = ENV["REPLAY_CONFIGURE_RAMDISK"]? == "true"
REPLAY_MEM_SIZE = ENV["REPLAY_MEM_SIZE"]? || "512M"
REPLAY_MOUNT_PATH = Path[ENV["REPLAY_MOUNT_PATH"]? || "/mnt/ramdisk"]
STATIC_FILE_PATH = ENV["PUBLIC_WWW_PATH"]? || "./www"
VERSION = "1.0.0"

Class Method Summary

Class Method Detail

def self.register_severity_switch_signals : Nil #

Registers callbacks for USR1 signal

USR1 toggles :trace for all Log instances namespaces's Logs to :info if production is true, otherwise it is set to :debug. Log's not registered under namespaces are toggled to default

Usage

  • $ kill -USR1 ${the_application_pid}

[View source]
def self.running_in_production? #

[View source]
def self.trace? : Bool #

flag to indicate if we're outputting trace logs


[View source]