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

Version Path
pah-0.0.12 lib/pah/partials/_canonical_host.rb
pah-0.0.11 lib/pah/partials/_canonical_host.rb
pah-0.0.10 lib/pah/partials/_canonical_host.rb
pah-0.0.9 lib/pah/partials/_canonical_host.rb
pah-0.0.8 lib/pah/partials/_canonical_host.rb
pah-0.0.7 lib/pah/partials/_canonical_host.rb
pah-0.0.6 lib/pah/partials/_canonical_host.rb
pah-0.0.5 lib/pah/partials/_canonical_host.rb
pah-0.0.4 lib/pah/partials/_canonical_host.rb
pah-0.0.3 lib/pah/partials/_canonical_host.rb
pah-0.0.2 lib/pah/partials/_canonical_host.rb
pah-0.0.1 lib/pah/partials/_canonical_host.rb