From 4f73f48731762df4d51d955b23c97be3f995b61b Mon Sep 17 00:00:00 2001 From: Alex Ling Date: Sat, 15 Feb 2020 18:34:26 +0000 Subject: [PATCH] - set kemal to production mode if using --release --- src/mango.cr | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/mango.cr b/src/mango.cr index 72e501c..2a7e242 100644 --- a/src/mango.cr +++ b/src/mango.cr @@ -295,5 +295,8 @@ end add_handler AuthHandler.new storage +{% if flag?(:release) %} + Kemal.config.env = "production" +{% end %} Kemal.config.port = config.port Kemal.run