diff options
author | Kasper Timm Hansen <kaspth@gmail.com> | 2016-09-18 08:40:46 +0200 |
---|---|---|
committer | Kasper Timm Hansen <kaspth@gmail.com> | 2016-09-25 21:31:46 +0200 |
commit | 47e4795060ee8550e28f86cedd4654fad19f72a4 (patch) | |
tree | 4f325af5b4e895f4c8b58c095b3049342a77837e /railties/lib/rails/commands/server | |
parent | efd808755cac74f0001907a1d635856160d11f6a (diff) | |
download | rails-47e4795060ee8550e28f86cedd4654fad19f72a4.tar.gz rails-47e4795060ee8550e28f86cedd4654fad19f72a4.tar.bz2 rails-47e4795060ee8550e28f86cedd4654fad19f72a4.zip |
Apply Rafaels review fixes.
Diffstat (limited to 'railties/lib/rails/commands/server')
-rw-r--r-- | railties/lib/rails/commands/server/server_command.rb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/railties/lib/rails/commands/server/server_command.rb b/railties/lib/rails/commands/server/server_command.rb index 98605b05b2..4349dfdc71 100644 --- a/railties/lib/rails/commands/server/server_command.rb +++ b/railties/lib/rails/commands/server/server_command.rb @@ -90,7 +90,9 @@ module Rails end def default_options - super.merge( Port: ENV.fetch("PORT", 3000).to_i, + super.merge( + Port: ENV.fetch("PORT", 3000).to_i, + Host: ENV.fetch("HOST", "localhost").dup, DoNotReverseLookup: true, environment: (ENV["RAILS_ENV"] || ENV["RACK_ENV"] || "development").dup, daemonize: false, |