Sha256: 566f78b2bc9ed8cfc2eb22229d286785c4b1ec679313261b3e085874155b71e5

Contents?: true

Size: 794 Bytes

Versions: 39

Compression:

Stored size: 794 Bytes

Contents

require_relative 'app_loader'

# if Isomorfeus.development?
#   require 'ruby-debug-ide'
#   Debugger.start_server
# end

Isomorfeus.init_store

if !Isomorfeus.development?
  Isomorfeus.zeitwerk.setup
  Isomorfeus.zeitwerk.eager_load

  run <%= roda_app_class %>.freeze.app
else
  Isomorfeus.zeitwerk.enable_reloading
  Isomorfeus.zeitwerk.setup
  Isomorfeus.zeitwerk.eager_load

  run ->(env) do
    if Isomorfeus.server_requires_reload?
      write_lock = Isomorfeus.zeitwerk_lock.try_write_lock
      if write_lock
        Isomorfeus.server_reloaded!
        Isomorfeus.zeitwerk.reload
        Isomorfeus.zeitwerk_lock.release_write_lock
      end
    end
    Isomorfeus.zeitwerk_lock.with_read_lock do
      <%= roda_app_class %>.call env
    end
  end
end

Version data entries

39 entries across 39 versions & 1 rubygems

Version Path
isomorfeus-23.6.0.rc5 lib/isomorfeus/installer/templates/config.ru.erb
isomorfeus-23.6.0.rc4 lib/isomorfeus/installer/templates/config.ru.erb
isomorfeus-23.6.0.rc3 lib/isomorfeus/installer/templates/config.ru.erb
isomorfeus-23.6.0.rc2 lib/isomorfeus/installer/templates/config.ru.erb
isomorfeus-23.6.0.rc1 lib/isomorfeus/installer/templates/config.ru.erb
isomorfeus-23.1.0.rc2 lib/isomorfeus/installer/templates/config.ru.erb
isomorfeus-23.1.0.rc1 lib/isomorfeus/installer/templates/config.ru.erb
isomorfeus-22.11.0.rc1 lib/isomorfeus/installer/templates/config.ru.erb
isomorfeus-22.10.0.rc2 lib/isomorfeus/installer/templates/config.ru.erb
isomorfeus-22.10.0.rc1 lib/isomorfeus/installer/templates/config.ru.erb
isomorfeus-22.9.0.rc9 lib/isomorfeus/installer/templates/config.ru.erb
isomorfeus-22.9.0.rc8 lib/isomorfeus/installer/templates/config.ru.erb
isomorfeus-22.9.0.rc7 lib/isomorfeus/installer/templates/config.ru.erb
isomorfeus-22.9.0.rc6 lib/isomorfeus/installer/templates/config.ru.erb
isomorfeus-22.9.0.rc5 lib/isomorfeus/installer/templates/config.ru.erb
isomorfeus-22.9.0.rc4 lib/isomorfeus/installer/templates/config.ru.erb
isomorfeus-22.9.0.rc3 lib/isomorfeus/installer/templates/config.ru.erb
isomorfeus-22.9.0.rc2 lib/isomorfeus/installer/templates/config.ru.erb
isomorfeus-22.9.0.rc1 lib/isomorfeus/installer/templates/config.ru.erb