module App
Defined in:
constants.cr
Constant Summary
-
ACCURACY_DISK =
(ENV["ACCURACY_DISK"]? || 50).to_f
-
ACCURACY_LOAD =
(ENV["ACCURACY_LOAD"]? || 0.15).to_f
-
ACCURACY_MEM =
(ENV["ACCURACY_MEM"]? || 25).to_f
-
ACCURACY_NET =
(ENV["ACCURACY_NET"]? || 100).to_f
-
ACCURACY_TIME =
(ENV["ACCURACY_TIME"]? || 10).to_f
-
ALLOW_READ =
ENV["ALLOW_READ"]? || ""
-
ALLOW_WRITE =
ENV["ALLOW_WRITE"]? || "sudo wheel"
-
COOKIE_SESSION_KEY =
ENV["SESSION_KEY"]? || "_ecmo_"
-
COOKIE_SESSION_SECRET =
ENV["SESSION_SECRET"]? || "4f74c0b358d5bab4000dd3c75465dc2c"
-
DB_RETENTION =
(ENV["DB_RETENTION"]? || 7).to_i
-
DEFAULT_HOST =
ENV["SERVER_HOST"]? || "127.0.0.1"
-
DEFAULT_PORT =
(ENV["SERVER_PORT"]? || 3000).to_i
-
DEFAULT_PROCESS_COUNT =
1
-
DESC =
"Easy Configuration Management Orchestration"
-
ENVIRONMENT =
ENV["MODE"]? || "development"
-
Log =
::Log.for(NAME)
-
LOG_BACKEND =
begin
ActionController.default_backend(io: File.new(ROOT + "/access.log", "a"))
rescue
ActionController.default_backend
end
-
NAME =
"Ecmo"
-
ROOT =
ENVIRONMENT == "development" ? File.join(Dir.current, "tmp") : "/opt/ecmo"
-
SSL_CERT =
ENV["SSL_CERT"]? || (ROOT + "/localhost.crt")
-
SSL_PKEY =
ENV["SSL_PKEY"]? || (ROOT + "/localhost.key")
-
VERSION =
{{ (`shards version \"/srv/crystaldoc.info/github-gabriel-aires-ecmo-v0.11.0/src\"`).chomp.stringify.downcase }}
Class Method Summary
Class Method Detail
def self.
running_in_production?
#