Skip to content

Commit

Permalink
Added missing cachebuster replacement for landing page variant (need …
Browse files Browse the repository at this point in the history
…to find a better solution for the future)
  • Loading branch information
Sebastian Gronewold committed Jul 29, 2014
1 parent 479bb7b commit 58afb61
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions bin/compile
Original file line number Diff line number Diff line change
Expand Up @@ -591,6 +591,14 @@ if [ -r /app/web/landingPage.html ]; then
sed --regexp-extended --in-place -e "s/\{cachebuster\}|c=[0-9]+/c=\${timestamp}/" /app/web/landingPage.html
sed --regexp-extended --in-place -e "s/\{KISSMETRICS_ID\}/\${KISSMETRICS_ID}/" /app/web/landingPage.html
fi
if [ -r /app/web/abnehmen.html ]; then
echo "Found landingPage - patching CDN & Kissmetrics ID into assets ..."
sed --regexp-extended --in-place -e "s/(https?:\/\/[^\/]*)?\/assets\//https:\/\/\${CDN_BASE_URL_HTTPS_STATIC}\/assets\//" /app/web/abnehmen.html
sed --regexp-extended --in-place -e "s/\{cachebuster\}|c=[0-9]+/c=\${timestamp}/" /app/web/abnehmen.html
sed --regexp-extended --in-place -e "s/\{KISSMETRICS_ID\}/\${KISSMETRICS_ID}/" /app/web/abnehmen.html
fi
if [ -r /app/web/lp ]; then
echo "Found individualized landingPages - patching CDN & Kissmetrics ID into assets ..."
sed --regexp-extended --in-place -e "s/(https?:\/\/[^\/]*)?\/assets\//https:\/\/\${CDN_BASE_URL_HTTPS_STATIC}\/assets\//" /app/web/lp/*.html
Expand Down

0 comments on commit 58afb61

Please sign in to comment.