# This file is used by Rack-based servers to start the application.

require_relative 'config/environment'

run Rails.application
Rails.application.load_server

# frozen_string_literal: true

# This file is used by Rack-based servers to start the application.

require_relative 'config/environment'

run Rails.application
Rails.application.load_server if Rails::VERSION::MAJOR == 6

Use load_server only on Rails 6 onwards
Use load_server only on Rails 6 onwards

5.x doesn't know this.
