Adjust the templates to handle canary on its own domain

This commit is contained in:
R. Tyler Croy 2017-12-15 07:54:34 -08:00
parent a156dc3288
commit 322bbe5dc0
No known key found for this signature in database
GPG Key ID: 1426C7DC3F51E16F
1 changed files with 2 additions and 6 deletions

View File

@ -1,9 +1,5 @@
:ruby :ruby
@url_root = '/' @url_root = '/'
if ENV['RACK_ENV'] == 'production'
@url_root = '/canary/'
end
!!! XML !!! XML
!!! !!!
%html %html
@ -48,8 +44,8 @@
.col-md-6 .col-md-6
%p %p
© 2017 © 2017
%a{:href => 'https://github.com/rtyler'} %a{:href => 'https://github.com/cloudbees'}
R. Tyler Croy. CloudBees Labs
.col-md-6 .col-md-6
%p.text-right %p.text-right
%a{:href => 'https://twitter.com/codevalet'} %a{:href => 'https://twitter.com/codevalet'}