From 968c499aca5ca71dc909ba7a632c5dbc4f58b101 Mon Sep 17 00:00:00 2001 From: "yuuji.yaginuma" Date: Mon, 5 Mar 2018 08:02:04 +0900 Subject: Fix "NameError: undefined local variable or method `host'" The `host` and `port` can't use this context. --- railties/lib/rails/commands/server/server_command.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'railties/lib') diff --git a/railties/lib/rails/commands/server/server_command.rb b/railties/lib/rails/commands/server/server_command.rb index 44b26d3846..64fb912b51 100644 --- a/railties/lib/rails/commands/server/server_command.rb +++ b/railties/lib/rails/commands/server/server_command.rb @@ -70,7 +70,7 @@ module Rails end def served_url - "#{options[:SSLEnable] ? 'https' : 'http'}://#{host}:#{port}" unless use_puma? + "#{options[:SSLEnable] ? 'https' : 'http'}://#{options[:Host]}:#{options[:Port]}" unless use_puma? end private -- cgit v1.2.3