class Iatelier::Application

Public Instance Methods

development() click to toggle source

DEVELOPMENT

# File lib/iatelier.rb, line 296
configure :development do
  # Don't handle exceptions, render the stack trace
  handle_exceptions false
end
production() click to toggle source

PRODUCTION

# File lib/iatelier.rb, line 312
configure :production do
  # scheme 'https'
  # host   'example.org'
  # port   443

  assets do
    # Don't compile static assets in production mode (eg. Sass, ES6)
    #
    # See: http://www.rubydoc.info/gems/hanami-assets#Configuration
    compile false

    # Use fingerprint file name for asset paths
    #
    # See: https://guides.hanamirb.org/assets/overview
    fingerprint true

    # Content Delivery Network (CDN)
    #
    # See: https://guides.hanamirb.org/assets/content-delivery-network
    #
    # scheme 'https'
    # host   'cdn.example.org'
    # port   443

    # Subresource Integrity
    #
    # See: https://guides.hanamirb.org/assets/content-delivery-network/#subresource-integrity
    subresource_integrity :sha256
  end
end
test() click to toggle source

TEST

# File lib/iatelier.rb, line 304
configure :test do
  # Don't handle exceptions, render the stack trace
  handle_exceptions false
end