From 1199e8e258544f545c8d71dec11771cf33e04a4a Mon Sep 17 00:00:00 2001 From: Stephen von Takach Date: Fri, 19 Jun 2020 14:30:28 +1000 Subject: [PATCH] feat(config): standardise on `SG_ENV` to indicate if the service is running in production mode --- src/config.cr | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/config.cr b/src/config.cr index 7e79d04..f3a99ef 100644 --- a/src/config.cr +++ b/src/config.cr @@ -8,7 +8,7 @@ require "./placeos-frontends" # Server required after application controllers require "action-controller/server" -PROD = ENV["ENV"]? == "PROD" +PROD = ENV["SG_ENV"]? == "production" # Add handlers that should run before your application ActionController::Server.before(