emacs-survey/config/env/prod.jl

20 lines
768 B
Julia
Raw Normal View History

2021-12-17 18:09:25 +00:00
using Genie.Configuration, Logging
const config = Settings(
2021-12-19 09:17:04 +00:00
server_port = 8000,
server_host = "0.0.0.0",
log_level = Logging.Error,
log_to_file = false,
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,
format_html_output = false
2021-12-17 18:09:25 +00:00
)
if config.server_handle_static_files
2021-12-19 09:17:04 +00:00
@warn("For performance reasons Genie should not serve static files (.css, .js, .jpg, .png, etc) in production.
2021-12-17 18:09:25 +00:00
It is recommended to set up Apache or Nginx as a reverse proxy and cache to serve static assets.")
end
2021-12-19 09:17:04 +00:00
ENV["JULIA_REVISE"] = "off"