diff options
author | yuuji.yaginuma <yuuji.yaginuma@gmail.com> | 2018-03-05 08:02:04 +0900 |
---|---|---|
committer | yuuji.yaginuma <yuuji.yaginuma@gmail.com> | 2018-03-05 08:02:04 +0900 |
commit | 968c499aca5ca71dc909ba7a632c5dbc4f58b101 (patch) | |
tree | 350fd05a3ede0db1c7854c62ddd346e82217df7c /railties/lib | |
parent | 4ed4c75c1fafd00646108771dedddeb1498796d8 (diff) | |
download | rails-968c499aca5ca71dc909ba7a632c5dbc4f58b101.tar.gz rails-968c499aca5ca71dc909ba7a632c5dbc4f58b101.tar.bz2 rails-968c499aca5ca71dc909ba7a632c5dbc4f58b101.zip |
Fix "NameError: undefined local variable or method `host'"
The `host` and `port` can't use this context.
Diffstat (limited to 'railties/lib')
-rw-r--r-- | railties/lib/rails/commands/server/server_command.rb | 2 |
1 files changed, 1 insertions, 1 deletions
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 |