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

require_relative 'config/environment'

run Rails.application
Rails.application.load_server
```

Use load_server only on Rails 6 onwards
user
```ruby
# 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
```
assistant