Giter Site home page Giter Site logo

docs's Introduction

Tugboat Logo

Welcome to Tugboat!

Tugboat is a system that builds a working preview of a website for any branch, tag, commit, or pull request in a git repository. It can automatically create these previews for pull requests by integrating with GitHub, GitLab, or Bitbucket git repositories.

This document aims to provide the information required to use Tugboat. It includes tutorials, examples, and references for all experience levels.

Contributing

This document is open-source, and is available on GitHub. If you have any suggestions or other feedback about this document, we are happy to hear it! Open a GitHub issue or email us at [email protected].

Theme

The Hugo Learn Theme is included in this repo as a git subtree. To update the theme, find the latest tag at https://github.com/matcornic/hugo-theme-learn/releases and run the following

export TAG=2.4.0
git subtree pull --prefix themes/hugo-theme-learn https://github.com/matcornic/hugo-theme-learn.git $TAG --squash

Redirects

Redirects for historic URLs are maintained in static/.htaccess. These can be tested using Smolder config file in test/smolder.yaml. The tests need to be run against a live instance, like a Tugboat preview.

cat test/smolder.yaml | docker run -i mcameron/smolder pr125-mcktkhcj8krhxo5oaa7emgv5gcnf5e5l.tugboatqa.com

License Information

This document is licensed as Creative Commons Attribution-NonCommercial-ShareAlike CC BY-NC-SA.

Everything not covered above is licensed under the MIT license.

docs's People

Contributors

amanire avatar apotek avatar bchavet avatar dacharyc avatar daggerhart avatar dannyjoris avatar dependabot[bot] avatar deviantintegral avatar isholgueras avatar jsoref avatar keyboardcowboy avatar m4olivei avatar mettamatt avatar paul121 avatar paulsheldrake avatar penyaskito avatar q0rban avatar quicksketch avatar rabbitlair avatar serverbots avatar sirkitree avatar snow0x2d0 avatar sun avatar yesct avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

docs's Issues

Visual Diffs

Revise Visual Diffs page, including:

  • Organize into sections:
    • Setting up Visual Diffs
    • Using/Viewing Visual Diffs
  • Add note about visualdiffs service key (linked to Setting up Services -> Service Attributes -> visualdiffs
  • Pull in some of the info from the visualdiffs attribute writeup to the Visual Diffs page
  • Add a section about the visual diff config being in whatever you're building (See info from Ben)
  • Add note about using visualdiff under php vs. apache, etc. (see note from James)

Document how to create a GitHub "bot" user for commenting

  1. Create a GitHub Tugboat user
  2. Grant that user access to your GitHub repo
  3. Generate a token for that user
  4. Log back into GitHub with your personal account
  5. While on the Tugboat Dashboard for the Repository, click Repository Settings
  6. Scroll down almost to the bottom until you see GitHub Comments
  7. Click the Change button and add your GitHub Tugboat token there

Reference

Review/edit Reference docs, and incorporate into docs where possible:

  • Config File
  • Prebuilt Service Images
  • Environment Variables
  • Actions and States
  • Glossary

Code Snippets

Review/Edit docs for:

  • Drupal 7
  • Drupal 8
  • WordPress
  • Pantheon
  • Static HTML
  • Generic LAMP
  • Import a MySql Database
  • Run Functional Tests
  • SimpleTest
  • Warm a Page Cache
  • Tenon.io Integration
  • Add a phpMyAdmin Service

Add SSH key link to Code Snippets

  • After adding documentation to Setting-up-Tugboat -> Repository Settings -> SSH key, add links to SSH key area in Code Snippets -> Tutorial examples

Document how to use Drupal multisite / add aliases

Topics might include:

  1. How do you point a custom domain? (Use CNAME preview.tugboat.qa)
  2. When using a custom domain, how do you get https working?
  3. What are aliases?
  4. How would you set up a Drupal Multisite installation?

Deprecate "Advanced" section of docs:

CLI and Background Process have already been incorporated elsewhere in docs. Figure out a place to put "Custom Environment Variables" and then remove "Advanced" from the site.

  • Put "Custom environment variables" content somewhere else
  • Edit links to custom-environment-variables/index.md to reflect new location
  • Add "Advanced" pages to .htaccess

Deprecate "Concepts" section of docs

  • Verify that all "concept" content is explained elsewhere in the docs, and if not, expand docs
  • Remove "concepts" from the site
  • Add "concepts" pages to .htaccess

CLI Documentation

We need some formal documentation about how to use the Tugboat CLI.

I'm not sure where to put this, but this is how I got the CLI up and running on my mac.

curl --remote-name https://dashboard2.tugboat.qa/cli/macos/tugboat
chmod +x ./tugboat
mv ./tugboat /usr/local/bin/

Some instructions similar to this would be helpful, but I'm not sure how to put it into the current page.

and for what it's worth, curl doesn't add the ".dms" extension like Safari does.

Add a robots.txt

Looks like we're missing a robots.txt in this site:

$ curl -I https://docs.tugboat.qa/robots.txt
HTTP/1.1 404 Not Found
Date: Mon, 09 Apr 2018 19:09:43 GMT
Server: Apache/2.4.33 (Unix) OpenSSL/1.0.2l
Content-Type: text/html; charset=iso-8859-1

Visual Diffs -> How are visual diffs calculated?

Per conversation with Ben:
Visual Diffs = pixel by pixel comparison of Before and After. % calculation is a literal calculation of how many pixels have changed in the page from Before to After. If you move something at the top of the page that bumps content down, the whole page may show up as changed as a result. Consider adding info around this to the Using Visual Diffs page, and possibly Troubleshooting - i.e. why does my entire page show as changed?

Setting up Tugboat -> Repository Settings

  • Add Build Previews for Forked Pull Requests under Modify settings for your GitHub, GitLab or Bitbucket Integration

By default, Tugboat will not build Previews for forked PRs. Click this setting to enable this feature. When this feature is not enabled, Forked PRs will show up as available to build, but users will get an error if they try to build them.

FAQ

  • Review/edit FAQ, and incorporate into docs where possible

Add details about --help to Tugboat CLI doc

The Tugboat CLI documentation should explicitly state that -h, --help can be used to query a specific command for more details (i.e. the args you can use with that command, etc.)

Troubleshooting -> Build Preview

  • 1074: Repo configuration does not allow building of pull requests from forks - go to Build Previews for Forked Pull Requests (in Repository Settings) and enable it

Apache redirects

  • Confirm apache redirects for removed pages/new pages in the doc site update

Deprecate "Configuring Tugboat" section of docs:

  • Verify that all "Configuring Tugboat" content is explained elsewhere in the docs, and if not, expand docs
  • Remove "Configuring Tugboat" from the site
  • Add "Configuring Tugboat" pages to .htaccess

FAQ -> Slack integration

  • Add Q about Slack integration, point out GitHub (and other provider?) Slack integrations as alternative

Improve Drupal 8 example and associated config.yml

  1. Our Drupal 8 Makefile doesn’t fix permissions on the file directories
  2. Private files and exported config are typically stored outside the webroot. Since the webroot is a symlink, that can get funky.
  3. IIRC, our D8 Makefile didn’t have composer install in the build target

We also should make sure that our Drupal 8 example tugboat project uses the same Makefile.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.