Update all files in your workarea
$ svnupdateall
U web/public/partners/premium_travel.cfm
U web/public/premiumlanding/surf_travel_discounts.cfm
U web/public/xml/inc_rep_data_tides.cfm
U web/public/xml/allspots.xml| import socket | |
| domain = "prerender.herokuapp.com" | |
| TEMPLATE_NODE = ''' { | |
| .backend = { | |
| .host = "%s"; | |
| .port = "80"; | |
| } | |
| .weight = 1; |
| # | |
| # NOTE: Heroku/ELB domains resolve to multiple IP addresses and Varnish | |
| # doesn't like this. The backend host must be a single IP address, a | |
| # hostname that resolves to a single IP address, or a dynamically- | |
| # generated director similar to the one described here: | |
| # | |
| # http://blog.cloudreach.co.uk/2013/01/varnish-and-autoscaling-love-story.html | |
| # | |
| backend prerender { |
| server { | |
| listen 80; | |
| listen [::]:80; | |
| server_name yourserver.com; | |
| root /path/to/your/htdocs; | |
| error_page 404 /404.html | |
| index index.html; |
| var SizePrefixes = ' KMGTPEZYXWVU'; | |
| GetHumanSize = function(size) { | |
| if(size <= 0) return '0'; | |
| var t2 = Math.min(Math.round(Math.log(size)/Math.log(1024)), 12); | |
| return (Math.round(size * 100 / Math.pow(1024, t2)) / 100) + | |
| SizePrefixes.charAt(t2).replace(' ', '') + 'B'; | |
| } |
| bytesToSize = function (bytes, precision) { | |
| var kilobyte = 1024; | |
| var megabyte = kilobyte * 1024; | |
| var gigabyte = megabyte * 1024; | |
| var terabyte = gigabyte * 1024; | |
| if ((bytes >= 0) && (bytes < kilobyte)) { | |
| return bytes + ' B'; | |
| } else if ((bytes >= kilobyte) && (bytes < megabyte)) { |