You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
6 lines
179 B
Ruby
6 lines
179 B
Ruby
5 years ago
|
insert_into_file "config.ru", before: /^run Rails.application/ do
|
||
|
<<-RUBY
|
||
2 years ago
|
use Rack::CanonicalHost, ENV.fetch("RAILS_HOSTNAME", nil) if ENV["RAILS_HOSTNAME"].present?
|
||
5 years ago
|
RUBY
|
||
|
end
|