Tugboat does not provide
visualdiffs for pages behind authentication. If you need to generate visual diffs from pages
that are protected behind a login screen, you can set up Diffy for your Tugboat Previews.
Diffy is a third-party visual diffing tool.
Create Tugboat environment variables to
services: apache: commands: init: # The Diffy CLI tool requires PHP. If the service image does not have PHP # installed, do it here #- apt-get update #- apt-get install php-cli # Download the Diffy CLI tool, and authenticate. The latest version can be # found at https://github.com/DiffyWebsite/diffy-cli/releases - curl -L https://github.com/DiffyWebsite/diffy-cli/releases/download/0.1.2/diffy.phar -o /usr/local/bin/diffy - chmod +x /usr/local/bin/diffy - diffy auth:login $DIFFY_API_KEY # Clean up after apt-get, if it was used #- apt-get clean #- rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* online: # Compare this service with production - diffy project:compare $DIFFY_PROJECT_ID prod custom --env2Url=$TUGBOAT_SERVICE_URL # Compare this service with the base preview - if [ "x$TUGBOAT_BASE_PREVIEW_URL" != "x" ]; then diffy project:compare $DIFFY_PROJECT_ID custom custom --env1Url=$TUGBOAT_BASE_PREVIEW_URL --env2Url=$TUGBOAT_SERVICE_URL; fi