From 7b075a4ae6fcbfb1433a59f9c9984cabb8d721c6 Mon Sep 17 00:00:00 2001 From: TEC Date: Sun, 16 Oct 2022 18:39:49 +0800 Subject: [PATCH] Log to a file when deployed --- config/env/prod.jl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/config/env/prod.jl b/config/env/prod.jl index 23ee1bf..5b8c93b 100755 --- a/config/env/prod.jl +++ b/config/env/prod.jl @@ -4,7 +4,7 @@ Genie.Configuration.config!( server_port = 8000, server_host = "0.0.0.0", log_level = Logging.Error, - log_to_file = false, + log_to_file = true, server_handle_static_files = true, # for best performance set up Nginx or Apache web proxies and set this to false path_build = "build", format_julia_builds = false, @@ -16,4 +16,4 @@ if Genie.config.server_handle_static_files It is recommended to set up Apache or Nginx as a reverse proxy and cache to serve static assets.") end -ENV["JULIA_REVISE"] = "off" \ No newline at end of file +ENV["JULIA_REVISE"] = "off"