diff --git a/config/environments/production.rb b/config/environments/production.rb index 927c442..99fe36b 100644 --- a/config/environments/production.rb +++ b/config/environments/production.rb @@ -87,6 +87,8 @@ # Do not dump schema after migrations. config.active_record.dump_schema_after_migration = false + Rails.application.routes.default_url_options[:host] = ENV['PRODUCTION_URL'] + # Enable DNS rebinding protection and other `Host` header attacks. # config.hosts = [ # "example.com", # Allow requests from example.com