From 4528a14d273c141e5719f19c3b08c00364b47638 Mon Sep 17 00:00:00 2001 From: Adam Cooke Date: Sat, 3 Feb 2024 22:17:51 +0000 Subject: [PATCH] fix: fixes issue starting application in production mode I haven't observed these all that recently and these fixes are temporary until I have time to look properly. --- config/initializers/inflections.rb | 1 + lib/postal/config.rb | 3 +++ lib/postal/version.rb | 2 ++ 3 files changed, 6 insertions(+) diff --git a/config/initializers/inflections.rb b/config/initializers/inflections.rb index fc1f8dc6..0185b3bf 100644 --- a/config/initializers/inflections.rb +++ b/config/initializers/inflections.rb @@ -20,6 +20,7 @@ inflect.acronym "API" inflect.acronym "DNS" + inflect.acronym "MySQL" inflect.acronym "DB" inflect.acronym "IP" diff --git a/lib/postal/config.rb b/lib/postal/config.rb index b0c8e2a1..3b9c9e4a 100644 --- a/lib/postal/config.rb +++ b/lib/postal/config.rb @@ -9,6 +9,9 @@ module Postal + class Config + end + def self.host @host ||= config.web.host || "localhost:5000" end diff --git a/lib/postal/version.rb b/lib/postal/version.rb index d701fe55..80d20d09 100644 --- a/lib/postal/version.rb +++ b/lib/postal/version.rb @@ -11,4 +11,6 @@ def self.version VERSION end + Version = VERSION + end