From ee54b95068c4660182adb399213b859511c53989 Mon Sep 17 00:00:00 2001 From: Adrian Salceanu Date: Thu, 9 May 2024 19:09:57 +0200 Subject: [PATCH] Fix host to work on win, fix git line end for win --- Project.toml | 2 +- files/new_app/.gitattributes | 5 ++++- files/new_app/config/env/prod.jl | 2 +- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/Project.toml b/Project.toml index b9e805db1..2f0ad74d5 100644 --- a/Project.toml +++ b/Project.toml @@ -1,7 +1,7 @@ name = "Genie" uuid = "c43c736e-a2d1-11e8-161f-af95117fbd1e" authors = ["Adrian Salceanu and the amazing Genie contributors ♥️"] -version = "5.30.0" +version = "5.30.1" [deps] ArgParse = "c7e460c6-2fb9-53a9-8c5b-16f535851c63" diff --git a/files/new_app/.gitattributes b/files/new_app/.gitattributes index aed06ccab..be1e26fd5 100644 --- a/files/new_app/.gitattributes +++ b/files/new_app/.gitattributes @@ -1,3 +1,6 @@ app/assets/* linguist-vendored public/* linguist-vendored -*.jl.html linguist-language=HTML \ No newline at end of file +*.jl.html linguist-language=HTML +* text=auto +*.sh text eol=lf +*.conf text eol=lf \ No newline at end of file diff --git a/files/new_app/config/env/prod.jl b/files/new_app/config/env/prod.jl index 23ee1bf40..d2c5301d7 100644 --- a/files/new_app/config/env/prod.jl +++ b/files/new_app/config/env/prod.jl @@ -2,7 +2,7 @@ using Genie, Logging Genie.Configuration.config!( server_port = 8000, - server_host = "0.0.0.0", + server_host = (Sys.iswindows() ? "127.0.0.1" : "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