Skip to content

Commit

Permalink
rails config update to make rails 5 upgrade work on heroku
Browse files Browse the repository at this point in the history
  • Loading branch information
Aaron Grando authored and Aaron Grando committed Jan 14, 2018
1 parent 3140ffd commit 702a4d1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion config/environments/production.rb
Expand Up @@ -70,7 +70,7 @@
# config.active_record.auto_explain_threshold_in_seconds = 0.5

# Ensure that new traffic hits new URL
config.middleware.insert_before(Rack::Lock, Rack::Rewrite) do
config.middleware.insert_before(Rack::Runtime, Rack::Rewrite) do
r301 %r{.*}, 'http://gran.do$&', :if => Proc.new {|rack_env|
rack_env['SERVER_NAME'] != 'gran.do'
}
Expand Down

0 comments on commit 702a4d1

Please sign in to comment.