Log to a file when deployed

This commit is contained in:
TEC 2022-10-16 18:39:49 +08:00
parent 585e04463f
commit 7b075a4ae6
Signed by: tec
SSH Key Fingerprint: SHA256:eobz41Mnm0/iYWBvWThftS0ElEs1ftBr6jamutnXc/A
1 changed files with 2 additions and 2 deletions

4
config/env/prod.jl vendored
View File

@ -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"
ENV["JULIA_REVISE"] = "off"