Method: Hanami::Config#base_url

Defined in:
lib/hanami/config.rb

#base_urlURI

Sets the base URL for app’s web server.

This is passed to the router and used for generating links.

Defaults to ‘“0.0.0.0:2300”`. String values passed are turned into `URI` instances.

Returns:

  • (URI)

See Also:

Since:

  • 2.0.0

[View source]

133
# File 'lib/hanami/config.rb', line 133

setting :base_url, default: "http://0.0.0.0:2300", constructor: ->(url) { URI(url) }