dev = ENV["RACK_ENV"] == "development" if dev require "logger" logger = Logger.new($stdout) end require "rack/unreloader" Unreloader = Rack::Unreloader.new(subclasses: %w[Roda Sequel::Model], logger: logger, reload: dev, autoload: dev){App} require_relative "lib/models" Unreloader.require("lib/app.rb"){'App'} run(dev ? Unreloader : App.freeze.app)