# frozen_string_literal: true

require './lib/corona'

Bundler.require(:default, Corona.env)

Dotenv.load("#{Corona.root}/.env", "#{Corona.root}/.env.#{Corona.env}")

begin
  DB = Sequel.connect(Corona.config.database)
rescue StandardError => e
  puts "#{e.class}: #{e.message}"
end

Corona.mount_auto_loader!

require_relative 'initializers/redis'
require_relative 'initializers/sidekiq'

module Urls
  class Application # rubocop:disable Lint/EmptyClass
  end
end
