Sha256: bfcb945fe8a5ab544a7ca004bc1e03ccf5d8abaf01a129c968d866fa8c090bda
Contents?: true
Size: 534 Bytes
Versions: 12
Compression:
Stored size: 534 Bytes
Contents
puts "Configuring canonical hosts... ".magenta rack_canonical = <<CANONICAL #Run heroku config:add CANONICAL_HOST=yourdomain.com #For more information, see: https://github.com/tylerhunt/rack-canonical-host#usage use Rack::CanonicalHost, ENV['CANONICAL_HOST'] if ENV['CANONICAL_HOST'] CANONICAL in_root do inject_into_file 'config.ru', rack_canonical, {after: "require ::File.expand_path('../config/environment', __FILE__)", verbose: false} end git :add => 'config.ru' git :commit => "-qm 'Adding rack-canonical-host.'" puts "\n"
Version data entries
12 entries across 12 versions & 1 rubygems