Skip to content

Commit 8e25d16

Browse files
authored
Add in the ability to set an ENV to override the server host. Fixes #1787 (#1788)
1 parent c127744 commit 8e25d16

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lucky/server_settings.cr

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ module Lucky::ServerSettings
88
# The host for your local development.
99
# Depending on your setup, you may need `localhost`, `127.0.0.1`, or `0.0.0.0`
1010
def host : String
11-
settings["host"].as_s
11+
ENV["DEV_HOST"]? || settings["host"].as_s
1212
end
1313

1414
# The port to run your local dev server

0 commit comments

Comments
 (0)