Sha256: 54306e045fedc500315df27375a56dbe854569c7d2b9d1bbb78da1bde7c8c9ed
Contents?: true
Size: 588 Bytes
Versions: 3
Compression:
Stored size: 588 Bytes
Contents
module Pah module Templates class CanonicalHost < Pah::Template def call 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 inject_into_file 'config.ru', rack_canonical, after: "require ::File.expand_path('../config/environment', __FILE__)", verbose: false git add: 'config.ru' git_commit 'Add rack-canonical-host.' end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
pah-0.0.19 | lib/pah/templates/canonical_host.rb |
pah-0.0.17 | lib/pah/templates/canonical_host.rb |
pah-0.0.16 | lib/pah/templates/canonical_host.rb |