lib/hanami/environment.rb
# The HTTP host name
#
# In order to decide the value, it looks up the following sources:
#
#   * CLI option `host`
#   * HANAMI_HOST ENV var
#
# If those are missing it falls back to the following defaults:
#
#   * `"localhost"` for development
#   * `"0.0.0.0"` for all the other environments
#
# @return [String] the HTTP host name
#
# @since 0.1.0
#
# @see Hanami::Environment::DEFAULT_HOST
# @see Hanami::Environment::LISTEN_ALL_HOST
The HTTP host name
In order to decide the value, it looks up the following sources.

CLI option `host`
HANAMI_HOST ENV var

If those are missing it falls back to the following defaults.


The HTTP host name In order to decide the value it looks up the following sources . CLI option ` host ` HANAMI_HOST ENV var If those are missing it falls back to the following defaults .
def host
      @host ||= @options.fetch(:host) {
        ENV[HANAMI_HOST] || default_host
      }
    end
def host @host ||= @options . fetch ( :host ) { ENV [ HANAMI_HOST ] || default_host } end
The HTTP host name
In order to decide the value, it looks up the following sources:
The HTTP host name In order to decide the value it looks up the following sources :
the HTTP host name
the HTTP host name
String
since
None
see
None
see
None