Use load_server only on Rails 6 onwards
5.x doesn't know this.
This commit is contained in:
parent
6c79cc7939
commit
2d26275c8c
1 changed files with 3 additions and 1 deletions
|
|
@ -1,6 +1,8 @@
|
||||||
|
# frozen_string_literal: true
|
||||||
|
|
||||||
# This file is used by Rack-based servers to start the application.
|
# This file is used by Rack-based servers to start the application.
|
||||||
|
|
||||||
require_relative 'config/environment'
|
require_relative 'config/environment'
|
||||||
|
|
||||||
run Rails.application
|
run Rails.application
|
||||||
Rails.application.load_server
|
Rails.application.load_server if Rails::VERSION::MAJOR == 6
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue