Class: Iatelier::Application

Inherits:
Hanami::Application
  • Object
show all
Defined in:
lib/iatelier.rb

Instance Method Summary collapse

Instance Method Details

#developmentObject

DEVELOPMENT



296
297
298
299
# File 'lib/iatelier.rb', line 296

configure :development do
  # Don't handle exceptions, render the stack trace
  handle_exceptions false
end

#productionObject

PRODUCTION



312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
# 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

#testObject

TEST



304
305
306
307
# File 'lib/iatelier.rb', line 304

configure :test do
  # Don't handle exceptions, render the stack trace
  handle_exceptions false
end